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

ss启动虚拟机时出现的问题

PANIC: Could not find AVD_for_Galaxy_Nexus_by_Google.ini file in
  $ANDROID_AVD_HOME nor in $HOME/.android/avd"!

ss google到的方法之一

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再次Google

ss参照如下步骤操作【参考】

First, install some packages and libs:

$ sudo apt-get install lib64stdc++6:i386

$ sudo apt-get install mesa-utils
$ 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!

这里写图片描述

你可能感兴趣的:(Android开发)