Android Studio无法在Ubuntu上启动

5anewei6  于 2023-02-09  发布在  Android
关注(0)|答案(2)|浏览(139)

几天后我开始使用Android Studio,突然Android Studio没有启动。当我通过终端即“Studio”命令启动它时。出现以下错误。

Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
Start Failed: Internal Error. Please report to https://https://code.google.com/p/android/issues

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.ide.Bootstrap.main(Bootstrap.java:39)
    at com.intellij.idea.Main.main(Main.java:103)
Caused by: java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jdk1.8.0_91/jre/lib/i386/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
    at java.lang.Runtime.load0(Runtime.java:809)
    at java.lang.System.load(System.java:1086)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at java.awt.Toolkit$3.run(Toolkit.java:1636)
    at java.awt.Toolkit$3.run(Toolkit.java:1634)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
    at java.awt.Cursor.<clinit>(Cursor.java:195)
    at javax.swing.text.html.HTMLEditorKit.<clinit>(HTMLEditorKit.java:623)
    at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:97)
    at com.intellij.ide.plugins.PluginManager.start(PluginManager.java:71)
    ... 6 more

Also, an UI exception occurred on attempt to show above message:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
    at java.awt.Component.<clinit>(Component.java:593)
    at com.intellij.idea.Main.showMessage(Main.java:336)
    at com.intellij.idea.Main.showMessage(Main.java:312)
    at com.intellij.idea.Main.showMessage(Main.java:291)
    at com.intellij.idea.Main.main(Main.java:106)

我重新安装了java 7和java 8,也重新安装了Android Studio,但是还是没有任何帮助,我以前安装过octave,是不是有问题?

gcmastyq

gcmastyq1#

要解决此问题,您应该安装JDK 64位。根据注解,您已经安装了32位JDK

t98cgbkg

t98cgbkg2#

我也遇到了同样的问题。我关闭了应用程序并重新打开。它为我修复了这个问题。

相关问题