0

不知道这是怎么发生的,我正在构建一个项目,然后下次我构建它时,在 2 分钟内,突然这开始在 eclipse 中发生:

[2012-07-26 12:48:02 - project] Installation error: INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING
[2012-07-26 12:48:02 - project] Please check logcat output for more details.
[2012-07-26 12:48:02 - project] Launch canceled!

亚行输出为:

07-26 12:48:01.656: W/ActivityManager(346): No content provider found for permission revoke: file:///data/local/tmp/xxxx.apk
07-26 12:48:01.726: W/ActivityManager(346): No content provider found for permission revoke: file:///data/local/tmp/xxxx.apk
07-26 12:48:01.781: D/dalvikvm(346): WAIT_FOR_CONCURRENT_GC blocked 0ms
07-26 12:48:01.781: W/PackageParser(346): Exception reading /data/app/vmdl-883532656.tmp
07-26 12:48:01.781: W/PackageParser(346): java.io.IOException: global_list_ch
07-26 12:48:01.781: W/PackageParser(346):  ild_row_bck.png.png
07-26 12:48:01.781: W/PackageParser(346): SHA1-Digest
07-26 12:48:01.781: W/PackageParser(346):   at java.util.jar.InitManifest.readName(InitManifest.java:130)
07-26 12:48:01.781: W/PackageParser(346):   at java.util.jar.InitManifest.readHeader(InitManifest.java:104)
07-26 12:48:01.781: W/PackageParser(346):   at java.util.jar.InitManifest.initEntries(InitManifest.java:69)
07-26 12:48:01.781: W/PackageParser(346):   at java.util.jar.Manifest.read(Manifest.java:221)
07-26 12:48:01.781: W/PackageParser(346):   at java.util.jar.Manifest.<init>(Manifest.java:120)
07-26 12:48:01.781: W/PackageParser(346):   at java.util.jar.JarFile.getManifest(JarFile.java:296)
07-26 12:48:01.781: W/PackageParser(346):   at android.content.pm.PackageParser.collectCertificates(PackageParser.java:608)
07-26 12:48:01.781: W/PackageParser(346):   at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:7249)
07-26 12:48:01.781: W/PackageParser(346):   at com.android.server.pm.PackageManagerService.access$1600(PackageManagerService.java:159)
07-26 12:48:01.781: W/PackageParser(346):   at com.android.server.pm.PackageManagerService$5.run(PackageManagerService.java:5546)
07-26 12:48:01.781: W/PackageParser(346):   at android.os.Handler.handleCallback(Handler.java:615)
07-26 12:48:01.781: W/PackageParser(346):   at android.os.Handler.dispatchMessage(Handler.java:92)
07-26 12:48:01.781: W/PackageParser(346):   at android.os.Looper.loop(Looper.java:137)
07-26 12:48:01.781: W/PackageParser(346):   at android.os.HandlerThread.run(HandlerThread.java:60)

我已经尝试了明显的,重启设备,adb uninstall com.project.xxxx重启adb,重启eclipse,android update project -p ./

真正的问题是这个项目只是坏了,我可以建造任何其他的,去看看!

干杯,克里斯

4

2 回答 2

2

OK 休息一下,再看一遍,终于发现了问题:

07-26 12:48:01.781: W/PackageParser(346): java.io.IOException: global_list_ch
07-26 12:48:01.781: W/PackageParser(346):  ild_row_bck.png.png

我看到了这个然后查看了我的资源,我设法在我的一个文件上输入了一个新行。看起来像:

ic_something.png
ic_something_else.png

作为文件名,奇怪的是它编译得很好,所以我从来没想过要看资源。

希望这可能对将来的某人有所帮助。

我为此提出了一个错误,它是 Eclipse 特定的:Eclipse Bug: 386045

干杯,克里斯

于 2012-07-26T13:30:54.663 回答
0

从评论转换而来。

我知道你说你重新启动了 adb,但是你是否也清除了缓存?其他人在这里遇到了同样的错误,显然通过缓存重置修复了它。具体来说,他们在终端中输入了以下内容:

adb root
adb remount
adb shell rm -r /data/dalvik-cache/*
于 2012-07-26T12:14:43.370 回答