由于标题中的上述错误,我已经被我的应用程序项目困住了很长一段时间。我知道还有很多关于它的其他主题,我尝试了几种解决方案,但似乎没有一个能解决我的问题。
到目前为止我已经尝试过:
- 增加 ADB 连接超时(毫秒)
- 更改了此处建议的环境路径变量:http: //anandpandia.blogspot.nl/2011/01/failed-to-install-helloandroidapk-on.html
- 重启了我的手机
- 在清单文件中将安装位置更改为外部
这个问题似乎与应用程序的大小有关。在我添加一些 mp3 文件之前,它运行良好。我认为该应用程序现在约为 150MB。我在内部磁盘和 SD 上都有足够的空间。
控制台输出
[2013-11-09 14:47:47 - POapp] ------------------------------
[2013-11-09 14:47:47 - POapp] Android Launch!
[2013-11-09 14:47:47 - POapp] adb is running normally.
[2013-11-09 14:47:47 - POapp] Performing com.example.poapp.MainActivity activity launch
[2013-11-09 14:47:47 - POapp] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-11-09 14:49:03 - POapp] Uploading POapp.apk onto device '0123456789ABCDEF'
[2013-11-09 14:49:39 - POapp] Installing POapp.apk...
[2013-11-09 14:51:40 - POapp] Failed to install POapp.apk on device '0123456789ABCDEF!
[2013-11-09 14:51:40 - POapp] (null)
[2013-11-09 14:51:40 - POapp] Launch canceled!
Logcat 错误(第二次运行后):
11-09 15:08:07.697: E/VoldConnector(492): NDC Command {312 asec create smdl2tmp2 151 ext4 8b2b620d8895582cbbc8637606418f53 10016 1} took too long (49368ms)
11-09 15:09:30.360: E/GetJar SDK(707): PackageMonitor: doOnReceive(): failed
11-09 15:09:30.360: E/GetJar SDK(707): java.lang.IllegalStateException: Unable to access the application key
11-09 15:09:30.360: E/GetJar SDK(707): at com.getjar.sdk.data.metadata.PackageMonitor.doOnReceive(PackageMonitor.java:121)
11-09 15:09:30.360: E/GetJar SDK(707): at com.getjar.sdk.data.metadata.PackageMonitor.access$000(PackageMonitor.java:61)
11-09 15:09:30.360: E/GetJar SDK(707): at com.getjar.sdk.data.metadata.PackageMonitor$1.run(PackageMonitor.java:86)
11-09 15:09:30.360: E/GetJar SDK(707): at java.lang.Thread.run(Thread.java:838)
11-09 15:09:30.631: E/GetJar SDK(707): PackageMonitor: doOnReceive(): failed
11-09 15:09:30.631: E/GetJar SDK(707): java.lang.IllegalStateException: Unable to access the application key
11-09 15:09:30.631: E/GetJar SDK(707): at com.getjar.sdk.data.metadata.PackageMonitor.doOnReceive(PackageMonitor.java:121)
11-09 15:09:30.631: E/GetJar SDK(707): at com.getjar.sdk.data.metadata.PackageMonitor.access$000(PackageMonitor.java:61)
11-09 15:09:30.631: E/GetJar SDK(707): at com.getjar.sdk.data.metadata.PackageMonitor$1.run(PackageMonitor.java:86)
11-09 15:09:30.631: E/GetJar SDK(707): at java.lang.Thread.run(Thread.java:838)