尝试在 VM 上启动模拟器时出错

Trying to launch the emulator on VM giving an error

我正在尝试在 VM 上启动模拟器。但是它在启动时显示错误

正在为 AVD 启动模拟器'AVD_4.2.2' 恐慌:ANDROID_SDK_HOME 已定义但无法在 $ANDROID_SDK_HOME.android\avd 中找到 AVD_4.2.2.ini 文件 (注意:avd是按照$ANDROID_AVD_HOME,$ANDROID_SDK_HOME.android\avd和$HOME.android\avd的顺序搜索的)

尝试定义一个Windows environment variable (user variable)

You can define the environment variable ANDROID_SDK_HOME to point to the directory containing your .android directory. The emulator and SDK Manager will pick it up properly.


参考: