1

由于标题中的上述错误,我已经被我的应用程序项目困住了很长一段时间。我知道还有很多关于它的其他主题,我尝试了几种解决方案,但似乎没有一个能解决我的问题。

到目前为止我已经尝试过:

这个问题似乎与应用程序的大小有关。在我添加一些 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)
4

1 回答 1

4

你清理过项目吗?添加新资源时,必须先清理项目,然后再重新构建。

如果您使用的是 Eclipse,请单击 Project -> Clean... 并清理所有项目。如果您使用的是命令行,请在项目目录中键入“ant clean”。

现在尝试重建项目。

于 2013-11-09T15:09:53.570 回答