如何解决INSTALL_FAILED_DEXOPT错误? [英] How do I solve the INSTALL_FAILED_DEXOPT error?
问题描述
我正在使用Android 2.2开发一个Android应用程序,我的应用程序APK大小为22.5 MB,我想为Samsung平板电脑创建一个新版本.我收到以下错误:
I am developing an Android application using Android 2.2, my application APK size is 22.5 MB, and I would like to create a new build for a Samsung tablet. I got the following error:
INSTALL_FAILED_DEXOPT
INSTALL_FAILED_DEXOPT
我该如何解决这种错误?
How do I solve this kind of error?
推荐答案
对我来说,这似乎与磁盘空间有关.新推出的5.1模拟器启动时会出现磁盘空间不足"错误-查看模拟器属性,为内部存储分配的默认空间为800MB,这似乎很低.
This seemed to be related to disk space for me. A newly rolled 5.1 emulator boots with a "low on disk space" error - and looking at the emulator properties, the default space allocated for internal storage is 800MB which seems low.
因此,解决方案是增加它(我去了4GB).奇怪的是,仿真器仍然以相同的磁盘空间警告启动,但是将其重置为出厂设置(设置->仿真器内部的备份和还原)完全为我解决了该问题.
Solution, therefore was to increase this (I went to 4GB). Oddly the emulator still boots with the same disk space warning but factory resetting it (Settings --> Backup and Restore inside the emulator) solved it entirely for me.
有些奇怪,它在默认设置下无法立即使用.
Just a bit odd that it doesn't work out of the box with default settings.
这篇关于如何解决INSTALL_FAILED_DEXOPT错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!