美文网首页
Android Studio on Linux 无法在线更新

Android Studio on Linux 无法在线更新

作者: 素笺淡墨染流年 | 来源:发表于2017-12-16 10:59 被阅读120次

最近打算在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 Studio on Linux 无法在线更新

      本文链接:https://www.haomeiwen.com/subject/lhkswxtx.html