当我单击运行一个我刚刚在Android Studio 0.2.10中创建的项目并选择我的Android(通过USB连接并通过USB调试打开)时,出现此错误:

Waiting for device.
Target device: 0123456789ABCDEF
Uploading file
    local path: /Users/Rui/AndroidStudioProjects/FirstAppProject/FirstApp/build/apk/FirstApp-debug-unaligned.apk
    remote path: /data/local/tmp/rui.firstapp
Installing rui.firstapp
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/rui.firstapp"
pkg: /data/local/tmp/rui.firstapp
Failure [INSTALL_FAILED_INVALID_APK]

有什么想法吗?

最佳答案

我在Android Studio中得到了它,而我所做的全部修复工作都是转到"Build" > "Clean Project",它就可以了。

08-05 03:39