由於上述標題中的錯誤,我暫時停留在我的應用項目中很長一段時間。我知道還有很多關於它的其他主題,我嘗試了幾種解決方案,但似乎沒有解決我的問題。未能在設備上安裝apk(null)
我迄今爲止嘗試:
- 增加ADB連接超時(毫秒)
- 改變環境路徑變量這裏建議:http://anandpandia.blogspot.nl/2011/01/failed-to-install-helloandroidapk-on.html
- 重新啓動我的電話
- 改變安裝位置外部在清單文件
這個問題似乎有一些東西做與應用程序的大小。它工作正常,直到我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)
我有一個2GB的apk完全相同的問題 – 2014-11-21 21:22:23
你找到了這個問題的答案? 我面臨同樣的問題。 –