Ionic 打包报错:CordovaError: Failed to deploy to device, no devices found.

错误信息:

Failed to deploy to device, no devices found.
CordovaError: Failed to deploy to device, no devices found.
    at D:\project\eyeshot\eyeshot\app\platforms\android\cordova\lib\device.js:56:29
    at _fulfilled (D:\project\eyeshot\eyeshot\app\platforms\android\cordova\node_modules\q\q.js:834:54)
    at self.promiseDispatch.done (D:\project\eyeshot\eyeshot\app\platforms\android\cordova\node_modules\q\q.js:863:30)
    at Promise.promise.promiseDispatch (D:\project\eyeshot\eyeshot\app\platforms\android\cordova\node_modules\q\q.js:796:13)
    at D:\project\eyeshot\eyeshot\app\platforms\android\cordova\node_modules\q\q.js:604:44
    at runSingle (D:\project\eyeshot\eyeshot\app\platforms\android\cordova\node_modules\q\q.js:137:13)
    at flush (D:\project\eyeshot\eyeshot\app\platforms\android\cordova\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
[ERROR] An error occurred while running subprocess cordova.

        cordova run android --device --verbose exited with exit code 1.

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

解决办法:

在命令行中打开C:\Users\lenovo\AppData\Local\Android\Sdk\platform-tools,

运行adb devices,如下图所示:

Ionic 打包报错:CordovaError: Failed to deploy to device, no devices found._第1张图片

 

 

你可能感兴趣的:(ionic)