UnhandledPromiseRejectionWarning:CordovaError:未找到模拟器图像(avds)

时间:2019-02-09 08:07:05

标签: android ios cordova ionic-framework notifications

我正在尝试在Mac上运行ionic android构建并直接安装在设备上。

O(n)

我正在运行上面的命令。

但是它抛出此错误:

ionic cordova emulate android

我尝试了以下命令,但抛出此错误

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
(node:24957) UnhandledPromiseRejectionWarning: CordovaError: No emulator images (avds) found.
1. Download desired System Image by running: /Users/manishkumar/Library/Android/sdk/tools/android sdk
2. Create an AVD by running: /Users/manishkumar/Library/Android/sdk/tools/android avd

android sdk

在Mac上非常令人困惑

系统The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager ************************************************************************* Invalid or unsupported command "sdk" Supported commands are: android list target android list avd android list device android create avd android move avd android delete avd android list sdk android update sdk

0 个答案:

没有答案