问题描述
- Linux下安装Android Studio出错,求大神解答!
-
JDK都配置好了,运行zoegreen@zoegreen-Lenovo-IdeaPad-Y470:/opt/android-studio/bin$ java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) Server VM (build 24.51-b03, mixed mode)
但在最后一步执行./studio.sh时不能打开studio,出现以下错误:
zoegreen@zoegreen-Lenovo-IdeaPad-Y470:/opt/android-studio/bin$ sudo ./studio.sh [sudo] password for zoegreen: Start Failed: Internal error. Please report to 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.ide.Bootstrap.main(Bootstrap.java:39) at com.intellij.idea.Main.main(Main.java:83) Caused by: java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jdk1.7.0_51/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: 错误 ELF 类: ELFCLASS64 at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851) at java.lang.Runtime.load0(Runtime.java:795) at java.lang.System.load(System.java:1062) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872) at java.lang.Runtime.loadLibrary0(Runtime.java:849) at java.lang.System.loadLibrary(System.java:1088) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1646) 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:624) at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:96) 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:595) at com.intellij.idea.Main.showMessage(Main.java:231) at com.intellij.idea.Main.showMessage(Main.java:217) at com.intellij.idea.Main.main(Main.java:86)
解决方案
http://blog.csdn.net/zangcf/article/details/43190787
看看是不是jdk太老,或者你在线下载的而google被墙。
解决方案二:
感觉像是你的jdk的问题啊
解决方案三:
缺少依赖的库libXtst,安装对应的库就好了,参考http://blog.csdn.net/maoxiang/article/details/5747109
解决方案四:
兄弟,解决了吗?我也遇到这个问题了。
解决方案五:
兄弟,解决了吗?我也遇到这个问题了。
解决方案六:
我也遇到这个问题了。。。请问怎么解决,有大神知道解决方案吗,我的JDK是1.5.0的装系统的时候默认的。
时间: 2024-10-31 23:15:58