gpt4 book ai didi

android - 无法在设备上安装 apk (null)

转载 作者:行者123 更新时间:2023-11-29 16:04:56 25 4
gpt4 key购买 nike

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

到目前为止我尝试了什么:

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

最佳答案

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

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

现在尝试重建项目。

关于android - 无法在设备上安装 apk (null),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19876959/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com