离子安卓模拟器

wah*_*hib 9 android cordova ionic-framework

我正在尝试在 android 模拟器中运行我的 IONIC 应用程序,但它一直给我这个错误!!!我设置了

ANDROID_HOME=C:\Program Files\Android\Android Studio\bin,
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
Run Code Online (Sandbox Code Playgroud)
[native-run] No hardware devices found, attempting emulator...
[native-run] ERR_NO_TARGET: No targets devices/emulators available. Cannot create AVD because there is no suitable API installation. Use --sdk-info to reveal missing packages and other issues.
[ERROR] An error occurred while running subprocess native-run.

        native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.


Run Code Online (Sandbox Code Playgroud)

小智 8

我遇到了同样的问题,然后我启动了 Android Studio 并运行了模拟器。

在模拟器运行的情况下,我执行了:

ionic cordova emulate android

它对我有用:)


Jak*_*keB 0

ANDROID_HOMME 应该是 ANDROID_HOME