android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value

第一次使用Androd-studio 创建AVD结束后运行报错:
【android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value】

android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value

我找到我的Android sdk下面,确实没有找到对应system-img版本的api(我设置的AVD api是27)
android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value
文章图片
android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value
文章图片

后来突然想到,我的studio默认sdk路径不是我设置的系统路径啊(File/Other Settings/Default Project Structure...)
android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value
文章图片


android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value
文章图片

马上将环境变量中的Android sdk路径换成studio设置的sdk路径就ok了(studio这方面做的不好吧,环境变量没有做到统一管理呀。)
,当然要重启下studio!
android-studio Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value
文章图片

AVD成功启动!!

    推荐阅读