2013-11-09 164 views
1

由於上述標題中的錯誤,我暫時停留在我的應用項目中很長一段時間。我知道還有很多關於它的其他主題,我嘗試了幾種解決方案,但似乎沒有解決我的問題。未能在設備上安裝apk(null)

我迄今爲止嘗試:

這個問題似乎有一些東西做與應用程序的大小。它工作正常,直到我adddes幾個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 'ABCDEF' 
[2013-11-09 14:49:39 - POapp] Installing POapp.apk... 
[2013-11-09 14:51:40 - POapp] Failed to install POapp.apk on device 'ABCDEF! 
[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) 
+0

我有一個2GB的apk完全相同的問題 – 2014-11-21 21:22:23

+0

你找到了這個問題的答案? 我面臨同樣的問題。 –

回答

4

你有沒有清潔的項目了嗎?在添加新資源時,項目必須在重建之前先清理。

如果您使用的是Eclipse,請單擊Project - > Clean ...並清理所有項目。 如果您正在使用命令行,請在項目目錄中鍵入「ant clean」。

現在嘗試重建項目。

+0

謝謝。我曾嘗試過,沒有任何運氣。忘記列出它。 – user2915422