如何解决由于APK文件无效导致安装失败?

时间:2012-09-21 13:59:23

标签: android eclipse apk

我正在尝试构建Dolphin Player,但我得到了他的错误:

[2012-09-21 09:46:23 - DolphinPlayer] Installation failed due to invalid APK file!
[2012-09-21 09:46:23 - DolphinPlayer] Please check logcat output for more details.
[2012-09-21 09:46:23 - DolphinPlayer] Launch canceled!


09-21 09:32:15.460: W/PackageParser(52): Unknown element under <application>: intent-filter at /data/app/vmdl30455.tmp Binary XML file line #31
09-21 09:32:17.360: E/PackageManager(52): Package com.broov.player has mismatched uid: 10031 on disk, 10035 in settings
09-21 09:32:17.370: I/PackageManager(52): /data/app/vmdl30455.tmp changed; unpacking
09-21 09:32:17.390: W/PackageManager(52): Native ABI mismatch from package file
09-21 09:32:17.400: W/PackageManager(52): Package couldn't be installed in /data/app/com.broov.player.apk
09-21 09:32:17.460: D/AndroidRuntime(833): Shutting down VM
09-21 09:32:17.460: D/dalvikvm(833): DestroyJavaVM waiting for non-daemon threads to exit
09-21 09:32:17.460: D/dalvikvm(833): DestroyJavaVM shutting VM down
09-21 09:32:17.460: D/dalvikvm(833): HeapWorker thread shutting down
09-21 09:32:17.460: D/dalvikvm(833): HeapWorker thread has shut down
09-21 09:32:17.470: D/jdwp(833): JDWP shutting down net...
09-21 09:32:17.470: I/dalvikvm(833): Debugger has detached; object registry had 1 entries
09-21 09:32:17.480: D/dalvikvm(833): VM cleaning up
09-21 09:32:17.480: E/AndroidRuntime(833): ERROR: thread attach failed
09-21 09:32:17.490: D/dalvikvm(833): LinearAlloc 0x0 used 631172 of 5242880 (12%)
09-21 09:32:17.669: D/dalvikvm(52): GC freed 8681 objects / 526608 bytes in 239ms
: E/(): Device disconnected

4 个答案:

答案 0 :(得分:3)

在您的AndroidManifest.xml文件中看起来出现了问题。可能在错误的地方过滤意图过滤器?我认为它需要在&lt; activity&gt;范围内。标签,不在&lt; application&gt;范围内标签

答案 1 :(得分:3)

我在运行应用程序时遇到同样的错误我删除了bin文件夹 并清理了项目并再次运行,它再次创建了bin文件夹并且没有任何运行错误。

答案 2 :(得分:2)

可能是两个案例。

  1. 的AndroidManifest.xml
  2. 包含.jar文件也可能是导致此问题的原因。
  3. 了解更多信息,请查看

    Eclipse installation failed due to invalid APK file?

    OR

    Installation failed due to invalid APK file?

    OR

    Installation failed due to invalid APK file! - Android

    OR

    Installation failed - invalid apk file - android_opencv_library

答案 3 :(得分:1)

Build>重建项目。 为我解决了问题