0

我通过 Wubi 安装了 Ubuntu。当我尝试启动 Android Studio 时,它会抛出这个异常:

Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
    at java.awt.Component.<clinit>(Component.java:595)
    at com.intellij.idea.Main.showMessage(Main.java:190)
    at com.intellij.idea.Main.showMessage(Main.java:177)
    at com.intellij.idea.Main.main(Main.java:80)

我读过它libxtst6:i386在 64 位系统中可能有问题,但我已经安装了它,但它对我不起作用。

有什么想法有什么问题吗?

4

1 回答 1

0

This also happened to me, when launching IntelliJ Idea, on which Android Studio is based. I had the error because I mistakenly launched the IDE with a 32-bit JDK on my 64-bit system (I have several JDK's on my system). Using the 64-bit JDK solves the problem without requiring installing 32-bit native libraries.

于 2014-04-29T19:32:54.733 回答