启动android studio AVD出现:
PANIC: HOME is defined but could not find Nexus_4_API_22.ini file in $HOME/.android/avd (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd)
解决方案:
sudo cp /root/.android/avd/*.ini $Home/.android/avd/
sudo cp -r /root/.android/avd/*.avd $Home/.android/avd/
这里的“*”是你模拟器名字 $Home你的路径
/root/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Galaxy_Nexus_API_23
sh: 1: glxinfo: not found
sh: 1: glxinfo: not found
ioctl(KVM_CREATE_VM) failed: 16 设备或资源忙
failed to initialize KVM: 设备或资源忙
解决方案:
sudo apt-get update && sudo apt-get install mesa-utils
ioctl(KVM_CREATE_VM) failed: 16 设备或资源忙
failed to initialize KVM: 设备或资源忙
解决方案:
virtual box 和 AVD不能并存 关闭virtual box虚拟机就可以启动了
Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)
查看IDE和gradle版本是否都是最新的
SDK版本过低导致,更新一下SDK版本就ok了