当使用离子cordova运行android时出现的问题>>

问题描述 投票:0回答:1

当我尝试使用命令行运行时遇到问题

ionic cordova run android

它显示的错误是这个:

 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.

但是问题是我在Android Studio中创建了一个设备:

enter image description here

所以我想知道问题可能是什么?谢谢

当尝试使用命令行ionic cordova运行android时,我遇到问题。它显示的错误是这个错误:ERR_NO_TARGET:没有可用的目标设备/仿真器。无法创建AVD ...

ionic-framework ionic2
1个回答
0
投票

可能不是您要寻找的答案,但通常,我使用:ionic cordova build android

© www.soinside.com 2019 - 2024. All rights reserved.