红联Linux门户
Linux帮助

ubuntu16.10 AndroidStudio创建Virtual Device问题解决

发布时间:2017-02-02 15:17:12来源:linux网站作者:一梦为嘛
ss启动虚拟机时出现的问题:
PANIC: Could not find AVD_for_Galaxy_Nexus_by_Google.ini file in
$ANDROID_AVD_HOME nor in $HOME/.android/avd"!
 
ss 搜索到的方法之一:
sudo cp -R /root/.android $HOME
 
ss之后再次启动虚拟机出现下边的问题:
Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
 
ss再次搜索。
 
ss参照如下步骤操作:
ubuntu16.10 AndroidStudio创建Virtual Device问题解决
First, install some packages and libs:
$ sudo apt-get install lib64stdc++6:i386
$ sudo apt-get install mesa-utils
Second, tweak some links:
$ cd YOURPATH/Android/Sdk/tools/lib64
$ mv libstdc++/ libstdc++.bak
$ ln -s /usr/lib64/libstdc++.so.6  libstdc++
Third, relaunch your AVD device and test it.
Alternative solution, available only by terminal is to launch emulator with:
$ emulator -use-system-libs -avd YOUR_VIRTUAL_DEVICE_NAME
That’s all. Enjoy it!
 
本文永久更新地址:http://www.linuxdiyf.com/linux/28103.html