gpt4 book ai didi

android - "Could not initialize class sun.awt.X11.XToolkit"的可能解决方案?

转载 作者:太空宇宙 更新时间:2023-11-03 10:54:17 25 4
gpt4 key购买 nike

我在为 Android 应用程序设计布局时遇到以下错误(无法在布局编辑器窗口中打开布局)

Could not initialize class sun.awt.X11.XToolkit
Exception details are logged in Window > Show View > Error Log

这是错误日志窗口:

enter image description here

仅供引用,我有:

  • eclipse 靛蓝
  • ADT 到 15.0.1(版本:15.0.1.v201111031820-219398)
  • 尝试将目标选择为 Android SDK 2.2、2.3,甚至 3.0,但没有成功。
  • 我的“编译器合规级别”为 1.6(也有 1.7),我也尝试设置 1.7 但没有成功。

你知道这个错误的可能解决方案吗?

更新:

paresh@comp35:~$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.2) (6b18-1.8.2-4ubuntu2)
OpenJDK Server VM (build 16.0-b13, mixed mode)

最佳答案

不是真的,但请尝试更新您的 Java SDK。 1.6.0_18 很古老。

关于android - "Could not initialize class sun.awt.X11.XToolkit"的可能解决方案?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8253741/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com