尝试安装应用程序时发生 INSTALL_FAILED_DEXOPT 错误
我遇到了与此处和< a href="https://stackoverflow.com/questions/3776152/android-install-failed-dexopt-while-install-app-on-android-1-5">此处。
每次我尝试在 Motorola Xoom 上安装应用程序时,都会收到 INSTALL_FAILED_DEXOPT 错误。
这是来自控制台的错误消息:
[2011-08-02 09:34:43 - Blade] Installation error: INSTALL_FAILED_DEXOPT
[2011-08-02 09:34:43 - Blade] Please check logcat output for more details.
[2011-08-02 09:34:43 - Blade] Launch canceled!
这是相应的 logcat:
08-02 09:47:48.910: ERROR/PackageManager(142): Package com.theisenp.blade has mismatched uid: 10023 on disk, 10073 in settings
08-02 09:47:48.910: INFO/PackageManager(142): Linking native library dir for /data/app/com.theisenp.blade-1.apk
08-02 09:47:49.110: ERROR/dalvikvm(2094): Duplicate interface: 'Lgnu/trove/TIntIntProcedure;'
08-02 09:47:49.110: ERROR/dalvikvm(2094): Trouble with item 1108 @ offset 0x5d49c
08-02 09:47:49.110: ERROR/dalvikvm(2094): Cross-item verify of section type 0006 failed
08-02 09:47:49.110: ERROR/dalvikvm(2094): ERROR: Byte swap + verify failed
08-02 09:47:50.140: ERROR/dalvikvm(2094): Optimization failed
08-02 09:47:50.150: WARN/installd(91): DexInv: --- END '/data/app/com.theisenp.blade-1.apk' --- status=0xff00, process failed
08-02 09:47:50.150: ERROR/installd(91): dexopt failed on '/data/dalvik-cache/data@[email protected]@classes.dex' res = 65280
08-02 09:47:50.160: WARN/PackageManager(142): Package couldn't be installed in /data/app/com.theisenp.blade-1.apk
这是我到目前为止所尝试的:
- 在运行配置 -> 中选择“擦除用户数据”选项目标菜单。 (虽然我在此选项卡中只能看到模拟器而不是我的物理设备。也许我实际上并没有从 Xoom 中擦除用户数据?)
- 在尝试重新安装之前从我的设备中卸载该应用程序
- 多次重新启动设备
您可以提供的任何建议非常感谢!
I have a similar problem to the ones listed here and here.
I am getting an INSTALL_FAILED_DEXOPT error every time I try to install my app on my Motorola Xoom.
Here is the error message from the console:
[2011-08-02 09:34:43 - Blade] Installation error: INSTALL_FAILED_DEXOPT
[2011-08-02 09:34:43 - Blade] Please check logcat output for more details.
[2011-08-02 09:34:43 - Blade] Launch canceled!
And here is the corresponding logcat:
08-02 09:47:48.910: ERROR/PackageManager(142): Package com.theisenp.blade has mismatched uid: 10023 on disk, 10073 in settings
08-02 09:47:48.910: INFO/PackageManager(142): Linking native library dir for /data/app/com.theisenp.blade-1.apk
08-02 09:47:49.110: ERROR/dalvikvm(2094): Duplicate interface: 'Lgnu/trove/TIntIntProcedure;'
08-02 09:47:49.110: ERROR/dalvikvm(2094): Trouble with item 1108 @ offset 0x5d49c
08-02 09:47:49.110: ERROR/dalvikvm(2094): Cross-item verify of section type 0006 failed
08-02 09:47:49.110: ERROR/dalvikvm(2094): ERROR: Byte swap + verify failed
08-02 09:47:50.140: ERROR/dalvikvm(2094): Optimization failed
08-02 09:47:50.150: WARN/installd(91): DexInv: --- END '/data/app/com.theisenp.blade-1.apk' --- status=0xff00, process failed
08-02 09:47:50.150: ERROR/installd(91): dexopt failed on '/data/dalvik-cache/data@[email protected]@classes.dex' res = 65280
08-02 09:47:50.160: WARN/PackageManager(142): Package couldn't be installed in /data/app/com.theisenp.blade-1.apk
Here's what I've tried so far:
- Selecting the "Wipe User Data" option in the Run Configurations -> Target menu. (Though I can only see emulators and not my physical device in this tab. Perhaps I'm not actually wiping user data from the Xoom?)
- Uninstalling the app from my device before trying to reinstall
- Restarting the device multiple times
Any suggestions you can offer are very much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我没有安装该应用程序的任何早期版本,因此无法卸载。在较新版本的模拟器上,您可以通过在 AVDM(Android 虚拟设备管理器)中执行冷启动来修复该问题,这对我很有帮助。
I didn't have any previous version of the App installed, so uninstall was not an option. On newer version of Emulator you can fix that by doing Cold boot in AVDM (Android Virtual Device Manager), that had helped me.
尝试卸载此应用程序以及您设备上有您签名的所有其他应用程序(您的其他应用程序)。清理您的项目并重新启动安装。此外,您应该考虑通过另一种方式安装应用程序,即 ADB,例如使用 dropbox。
Try to uninstall this app, and all others who have your signature on your device (your other apps). Clean your project and restart install. Also, you should consider installing your app through another mean that ADB, for instance using dropbox.
您还可以在启动模拟器时尝试擦除用户数据选项。这对我有用。此错误背后的原因是您没有使用已更改的应用程序数据更新模拟器。因此模拟器无法在您的应用程序中找到新数据已安装的应用程序。希望这对您有用。
you can also try out wipe user data option when starting emulator.This worked for me.The reason behind this error is you are not updating your emulator with the application data that is already changed.So emulator can't find the new data in your installed application.hope this will work for you.
我建议运行 Eclipse 并查看 LogCat 输出以查看实际的错误消息是什么。我收到此错误,这是因为我的设备存储空间不足,无法解压缩 APK。我相信触发此错误的原因有多种,并且可能不需要卸载或清除用户数据。
I suggest running Eclipse and viewing LogCat output to see what the actual error message is. I was getting this error and it was because my device was low on storage and it was failing to unzip the APK. I believe there are multiple reasons that this error can be triggered and uninstalling or clearing user data may be unnecessary.
当设备内存几乎被利用时,我遇到了类似的错误,可以通过删除一些文件来解决。因此,请检查您的设备内存是否有足够的可用空间
Me faced similar error when device memory was almost utilized, was able to resolve by removing some files. So please check if enough free space is available in your device memory
我启用了“管理应用程序权限”,禁用后我可以使用 adb 安装应用程序
I had "Manage App Permissions" enabled, after disabling I could install app using adb