AVD Emulator无法启动(MacBook)

时间:2019-03-30 07:15:55

标签: android-studio avd avd-manager

我已经在Macbook(MoJave 10.14.3)上安装了Android Studio 3.3.2,但是无法使AVD设备仿真器工作,并出现以下错误:

 06:43    Emulator: emulator: ERROR: Unknown AVD name [Pixel_XL_API_28], use 
-list-avds to see valid list.
 06:43    Emulator: Process finished with exit code 1

我在“ /private/var/root/.android/avd”文件夹中找到了Pixel_XL_API_28.ini和Pixel_XL_API_28.avd,并且以下路径已添加到bash_profile中(如下所示)

 export ANDROID_HOME=/Users/brendonshaw/
 export ANDROID_SDK_ROOT=/Users/brendonshaw/Library/Android/sdk
 export ANDROID_SDK_HOME=/Users/brendonshaw/Library/Android/sdk
 export ANDROID_AVD_HOME=/private/var/root/.android/avd

 export PATH=${PATH}:$ANDROID_HOME:$ANDROID_HOME: 
 $ANDROID_AVD_HOME:$ANDROID_SDK_ROOT:$ANROID_SDK_HOME

如果我从命令行运行模拟器

  ./emulator -avd Pixel_XL_API_28.ini --target="AVD name"

我收到以下错误消息:

emulator: ERROR: Unknown AVD name [Pixel_XL_API_28.ini], use -list-avds to see valid list.


ANDROID_AVD_HOME is defined but there is no file Pixel_XL_API_28.ini.ini in $ANDROID_AVD_HOME

(注意:目录按照$ ANDROID_AVD_HOME,$ ANDROID_SDK_HOME / avd和$ HOME / .android / avd的顺序搜索)

是否可以解决此问题或将目录更改为指向其他位置以找到适当的文件?

0 个答案:

没有答案