Ionic在设备退出代码1上运行应用程序

时间:2017-08-03 23:39:50

标签: javascript cordova ionic-framework

我花了一整天时间来修复这个错误,我不知道为什么会这样。我可以构建iOS和Android,但是当我尝试在设备上运行时,iOS和android退出代码1,这里是日志

BUILD SUCCESSFUL

Total time: 21.515 secs
Built the following apk(s): 
        /Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/Jose/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
Skipping build...

Built the following apk(s): 
        /Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-debug.apk
Using apk: /Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-debug.apk
Package name: io.ionic.starter
Error: Failed to install apk to device: [  0%] /data/local/tmp/android-debug.apk
[  2%] /data/local/tmp/android-debug.apk
...
[ 99%] /data/local/tmp/android-debug.apk
[100%] /data/local/tmp/android-debug.apk
/Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-deb

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova run android --device (exit code 1).

0 个答案:

没有答案