我已经创建了一个Android模拟器,但我无法让它工作并运行与cordova的Android应用程序。使用Mac。
当我跑步时:
/avdmanager list avd
我明白了:
Name: AVD16
Device: wear_round_chin_320_290 (Google)
Path: /var/root/.android/avd/AVD16.avd
Target: Google APIs (Google Inc.)
Based on: Android 4.1 (Jelly Bean) Tag/ABI: google_apis/x86
Sdcard: 100M
所以,我的AVD模拟器存在,但是当我在项目文件夹中运行时:
cordova emulate --target=AVD16 android
我明白了:
BUILD SUCCESSFUL
Total time: 6.54 secs
Built the following apk(s):
/Users/francisco/{PROJECT_FOLDER}/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/francisco/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
Waiting for emulator to start...
PANIC: Unknown AVD name [AVD16], use -list-avds to see valid list.
HOME is defined but there is no file AVD16.ini in $HOME/.android/avd
(Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd, and $HOME/.android/avd)
没有任何反应,模拟器没有打开,只是永远停止。
如何在该模拟器上运行此应用程序?