问题描述
所以有几个关于这个主题的帖子,但看起来我的日志猫完全不同.不知道发生了什么.当我尝试在我的设备上运行时,我得到控制台日志:
So there were a couple of posts on this topic, but it looks like my log cat is totally different. Not sure what's going on. When I try to run on my device I get console log:
[2012-07-17 14:50:56 - zrox] Uploading zrox.apk onto device '3134F748F94100EC'
[2012-07-17 14:50:56 - zrox] Installing zrox.apk...
[2012-07-17 14:50:57 - zrox] Installation failed due to invalid APK file!
[2012-07-17 14:50:57 - zrox] Please check logcat output for more details.
[2012-07-17 14:50:57 - zrox] Launch canceled!
和 Logcat:
07-17 19:50:56.043: W/zipro(4533): Unable to open zip '/data/local/tmp/zrox.apk': Permission denied
07-17 19:50:56.043: D/asset(4533): failed to open Zip archive '/data/local/tmp/zrox.apk'
07-17 19:50:56.047: D/dalvikvm(252): WAIT_FOR_CONCURRENT_GC blocked 0ms
07-17 19:50:56.047: W/PackageParser(4533): Unable to read AndroidManifest.xml of /data/local/tmp/zrox.apk
07-17 19:50:56.047: W/PackageParser(4533): java.io.FileNotFoundException: AndroidManifest.xml
07-17 19:50:56.047: W/PackageParser(4533): at android.content.res.AssetManager.openXmlAssetNative(Native Method)
07-17 19:50:56.047: W/PackageParser(4533): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
07-17 19:50:56.047: W/PackageParser(4533): at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455)
07-17 19:50:56.047: W/PackageParser(4533): at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:722)
07-17 19:50:56.047: W/PackageParser(4533): at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:169)
07-17 19:50:56.047: W/PackageParser(4533): at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110)
07-17 19:50:56.047: W/PackageParser(4533): at android.os.Binder.execTransact(Binder.java:367)
07-17 19:50:56.047: W/PackageParser(4533): at dalvik.system.NativeStart.run(Native Method)
07-17 19:50:56.047: W/DefContainer(4533): Failed to parse package
07-17 19:50:56.047: W/ActivityManager(252): No content provider found for permission revoke: file:///data/local/tmp/zrox.apk
07-17 19:50:56.117: D/dalvikvm(252): GC_EXPLICIT freed 380K, 18% free 14176K/17159K, paused 4ms+6ms, total 70ms
我刚刚在我的 Nexus S 上为 android 4.1 安装了一个 rom.当我昨天有 4.0.3 时它起作用了.我确实在 Eclipse 中安装了 4.1 SDK,并且 android:targetSdkVersion
设置为 16.我还对项目进行了清理.没有.有什么想法吗?
I just installed a rom on my Nexus S for android 4.1. It worked when I had 4.0.3 yesterday. I do have the 4.1 SDK installed in eclipse, and android:targetSdkVersion
is set to 16. I have also run a clean on the project. Nothing. Any ideas?
推荐答案
我相信这是您正在运行的 rom,我正在使用从 Indirect 移植到 NS4G 的 rom.这是他在 XDA 上的帖子 http://forum.xda-developers.com/search.php?searchid=51245494
I believe it is the rom you are running, I'm on a rom ported to the NS4G from Indirect.Here are his posts on XDA http://forum.xda-developers.com/search.php?searchid=51245494
我也有同样的问题.:/
I have the same problem as well. :/
这篇关于由于 APK 文件无效,安装失败!- 安卓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!