Android Studio on Linux 无法在线更新

最近打算在Linux上开发,选择了Deepin,挺不错的。

无法更新

重装了Android Studio,装的是2.3的版本,但是无法在线升级。

提示的大概意思是:无法删除/opt/android-studio/lib/rt/xxxxx.jar中的某一个文件

这句话让我想起了这个错误:

Studio does not have write access to /opt/android-studio. Please run it by a privileged user to update 

没有权限,不能操作相应的文件夹。

执行以下命令,不要在root环境下执行

sudo chown -R $USER:$USER /opt/android-studio

这个样子,就可以了。

模拟器启动不了

提示:

上午11:21 Emulator: libGL error: unable to load driver: r600_dri.so

上午11:21 Emulator: libGL error: driver pointer missing

上午11:21 Emulator: libGL error: failed to load driver: r600

上午11:21 Emulator: libGL error: unable to load driver: r600_dri.so

上午11:21 Emulator: libGL error: driver pointer missing

上午11:21 Emulator: libGL error: failed to load driver: r600

上午11:21 Emulator: libGL error: unable to load driver: swrast_dri.so

上午11:21 Emulator: libGL error: failed to load driver: swrast

上午11:21 Emulator: X Error of failed request:  BadValue (integer parameter out of range for operation)

上午11:21 Emulator: Major opcode of failed request:  156 (GLX)

上午11:21 Emulator: Minor opcode of failed request:  24 (X_GLXCreateNewContext)

上午11:21 Emulator: Value in failed request:  0x0

上午11:21 Emulator: Serial number of failed request:  64

上午11:21 Emulator: Current serial number in output stream:  65

上午11:21 Emulator: Process finished with exit code 1

上午11:22 Emulator: libGL error: unable to load driver: r600_dri.so

上午11:22 Emulator: libGL error: driver pointer missing

上午11:22 Emulator: libGL error: failed to load driver: r600

上午11:22 Emulator: libGL error: unable to load driver: r600_dri.so

上午11:22 Emulator: libGL error: driver pointer missing

上午11:22 Emulator: libGL error: failed to load driver: r600

上午11:22 Emulator: libGL error: unable to load driver: swrast_dri.so

上午11:22 Emulator: libGL error: failed to load driver: swrast

上午11:22 Emulator: X Error of failed request:  BadValue (integer parameter out of range for operation)

上午11:22 Emulator: Major opcode of failed request:  156 (GLX)

上午11:22 Emulator: Minor opcode of failed request:  24 (X_GLXCreateNewContext)

上午11:22 Emulator: Value in failed request:  0x0

上午11:22 Emulator: Serial number of failed request:  64

上午11:22 Emulator: Current serial number in output stream:  65

上午11:22 Emulator: Process finished with exit code 1

上午11:22 Emulator: libGL error: unable to load driver: r600_dri.so

上午11:22 Emulator: libGL error: driver pointer missing

上午11:22 Emulator: libGL error: failed to load driver: r600

上午11:22 Emulator: libGL error: unable to load driver: r600_dri.so

上午11:22 Emulator: libGL error: driver pointer missing

上午11:22 Emulator: libGL error: failed to load driver: r600

上午11:22 Emulator: libGL error: unable to load driver: swrast_dri.so

上午11:22 Emulator: libGL error: failed to load driver: swrast

上午11:22 Emulator: X Error of failed request:  BadValue (integer parameter out of range for operation)

上午11:22 Emulator: Major opcode of failed request:  156 (GLX)

上午11:22 Emulator: Minor opcode of failed request:  24 (X_GLXCreateNewContext)

上午11:22 Emulator: Value in failed request:  0x0

上午11:22 Emulator: Serial number of failed request:  64

上午11:22 Emulator: Current serial number in output stream:  65

上午11:22 Emulator: Process finished with exit code 1

解决:

sudo apt-get install lib64stdc++6:i386
sudo apt-get install mesa-utils

cd /opt/android-sdk/emulator/lib64
mv libstdc++/ libstdc++.bak
ln -s /usr/lib64/libstdc++.so.6  libstdc++

然后启动模拟器就可以了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 174,676评论 25 709
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,642评论 2 45
  • [root@hh hadoop]# hdfs namenode -format 17/12/12 17:42:06...
    好了伤疤忘了阅读 1,413评论 0 51
  • 姓名:侯思慧 性别:女 年龄:十六岁 出生年月:2001.4.18 民族:汉 毕业学校:桂阳职业技术学校 政治面...
    丅约定_b1d4阅读 277评论 0 0
  • 一、背景介绍: 1. 第二胎,在新的政策放开后,去年8月怀胎,预产期是今年5月第1周,但因羊水早破,在北大...
    霜泉阅读 263评论 0 0