【发布时间】:2019-07-22 09:00:50
【问题描述】:
我正在尝试在 android 模拟器中运行我的 IONIC 应用程序,但它一直给我这个错误!!! 我设置了
ANDROID_HOME=C:\Program Files\Android\Android Studio\bin,
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
[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.
【问题讨论】:
-
它表示您没有安装任何模拟器系统映像。您需要通过 Android SDK manager 安装它们
-
我已经安装好了
-
检查您的模拟器是否启用了开发者选项。
-
这里有同样的问题。 Cordova 单独运行良好,但不能与 ionic 一起运行。
标签: android cordova ionic-framework