0
04-12 09:41:33.425: W/PackageInstaller(5015): Parse error when parsing manifest. Discontinuing installation
04-12 09:41:33.425: W/PackageParser(5015): Unable to read AndroidManifest.xml of /mnt/sdcard/Download/downloadfile.apk
04-12 09:41:33.425: W/PackageParser(5015): java.io.FileNotFoundException: AndroidManifest.xml
04-12 09:41:33.425: W/PackageParser(5015):  at android.content.res.AssetManager.openXmlAssetNative(Native Method)
04-12 09:41:33.425: W/PackageParser(5015):  at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
04-12 09:41:33.425: W/PackageParser(5015):  at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455)
04-12 09:41:33.425: W/PackageParser(5015):  at android.content.pm.PackageParser.parsePackage(PackageParser.java:425)
04-12 09:41:33.425: W/PackageParser(5015):  at com.android.packageinstaller.PackageUtil.getPackageInfo(PackageUtil.java:74)
04-12 09:41:33.425: W/PackageParser(5015):  at com.android.packageinstaller.PackageInstallerActivity.onCreate(PackageInstallerActivity.java:277)
04-12 09:41:33.425: W/PackageParser(5015):  at android.app.Activity.performCreate(Activity.java:4465)
04-12 09:41:33.425: W/PackageParser(5015):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
04-12 09:41:33.425: W/PackageParser(5015):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
04-12 09:41:33.425: W/PackageParser(5015):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
04-12 09:41:33.425: W/PackageParser(5015):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
04-12 09:41:33.425: W/PackageParser(5015):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
04-12 09:41:33.425: W/PackageParser(5015):  at android.os.Handler.dispatchMessage(Handler.java:99)
04-12 09:41:33.425: W/PackageParser(5015):  at android.os.Looper.loop(Looper.java:137)
04-12 09:41:33.425: W/PackageParser(5015):  at android.app.ActivityThread.main(ActivityThread.java:4424)
04-12 09:41:33.425: W/PackageParser(5015):  at java.lang.reflect.Method.invokeNative(Native Method)
04-12 09:41:33.425: W/PackageParser(5015):  at java.lang.reflect.Method.invoke(Method.java:511)
04-12 09:41:33.425: W/PackageParser(5015):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
04-12 09:41:33.425: W/PackageParser(5015):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
04-12 09:41:33.425: W/PackageParser(5015):  at dalvik.system.NativeStart.main(Native Method)

请问如何解决这个问题。

4

3 回答 3

0

我在这个错误上投入了一些时间,发现有两种可能性。

  1. 您的 apk 没有正确构建(尝试从设备或模拟器中清理项目/卸载并尝试再次构建)。
  2. 如果您在某个服务器上上传了您的 apk,则您的上传已损坏。
于 2013-03-05T08:17:31.197 回答
0

您可以检查包文件以查看 Manifest.xml 文件是否在其中并包含您放入其中的信息。.apk 文件可以使用大多数 zip 实用程序打开。有关格式,请参见以下链接:Wikipedea 上的 apk 文件格式

如果没有看到 manifest.xml 文件,就很难再说什么了。

于 2012-04-12T05:29:45.137 回答
0

尝试在 Eclipse 中右键单击项目-> android 工具-> 修复项目属性然后清理并构建。

于 2012-04-12T05:16:46.893 回答