开发者社区> 问答> 正文

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)

展开
收起
杨冬芳 2016-07-12 14:37:20 3183 0
1 条回答
写回答
取消 提交回答
  • 下一站是幸福

    安装android studio 选择本地sdk时出现: Unable to run mksdcard SDK tool.

    装的linux版本是CentOS 7 64位版本

    通过各种资料得知是缺少支持库

    2021-03-14 22:21:20
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载