adb:命令失败,退出代码为ENOENT

时间:2019-06-13 04:24:59

标签: android cordova

我正在尝试使用Cordova构建我的应用程序,但出现此错误。

c:\hybridProject\test>cordova run android --list
Available android devices:
ERROR: Error: adb: Command failed with exit code ENOENT
An unexpected error has occurred while running list-devices with code 2: Error: c:\hybridProject\test\platforms\android\cordova\lib\list-devices: Command failed with exit code 2
Available android virtual devices:

c:\hybridProject\test>cordova run android --list
Available android devices:
ERROR: Error: adb: Command failed with exit code ENOENT
An unexpected error has occurred while running list-devices with code 2: Error: c:\hybridProject\test\platforms\android\cordova\lib\list-devices: Command failed with exit code 2
Available android virtual devices:

我不想收到错误消息。

0 个答案:

没有答案