Unable install app into emulator 2.3.3 : INSTALL_FAILED_DEXOPT

后端 未结 4 1770
深忆病人
深忆病人 2021-01-13 13:36

I use the latest adt-bundle-windows-x86_64-20130717, with

  • Android SDK Tools - 22.0.4
  • Android SDK Platform-tools - 18

I ha

相关标签:
4条回答
  • 2021-01-13 14:14

    I was facing the same issue after upgrading ADT and I was stuck for this issue for almost half and a day.After every HIT and TRY method found the solution.

    **

    ONE OF LIBRARY PROJECT BUILD TARGET WAS HIGHER THEN MY PROJECT , JUST CHANGED LIBRARY PROJECT BUILD TARGET TO 3.0 AND MY PROJECT BUILD TARGET TO 4.0.3 AND IT VANISHES.

    **

    Just posted my solution if it helps others in future.

    0 讨论(0)
  • 2021-01-13 14:16

    Try uninstalling your app before installing it again. It seems to have solved the issue for some according to this

    0 讨论(0)
  • 2021-01-13 14:24

    It's very hard to find out what the error is from the information you provided.

    Try the following

    • Clean your project

    • Uninstall your app

    • Download a different version of adt bundle

    • Experiment with different emulators with different values

    • Try to use a real device, does the problem still occur?

    • Look through these links, maybe your problem is similar:

    • http://blog.elsdoerfer.name/2009/05/25/android-fix-package-uid-mismatches/

    • How to solve Installation failed due to invalid APK file?

    • LinearAlloc exceeded capacity (5242880), last=1092 Error while installing on my Samsung Tablet Device

    • INSTALL_FAILED_DEXOPT error when trying to install application

    Good luck!

    0 讨论(0)
  • 2021-01-13 14:28

    Most of the time associated with excessive values for LinearAlloc. Putting verbose mode for logcat could give you more details (can even pinpoint the problem).

    There no definite fix I heard of.Sometimes it can be fixed by wiping AVD, some get fix by increasing SD card only, some had to recreate new AVD, some fixed it by reinstalling ADT, there are lots of fixes people speak of, answer can be varied as actual problem.

    Sometimes problem can be corrupted files, or application install entries which makes android confused whether app is installed or not. Or by use of complex libraries, or even problem with the compiler itself.

    There's not a lot of clear information on this error from Google, they say it is related to a bug in Android OS that doesn't frees files handles in some cases. However as looking to logcat it always connected to some dex files. and so as to DDMS and compiler.

    I suggest you to try all of the fixes I stated, also refer the given links

    Issue 22586: Dexopt fails with "LinearAlloc exceeded" for deep interface hierarchies

    Cleanup redundant interfaces from iftable to avoid excessive LinearAlloc use

    Issue 42538: INSTALL_FAILED_DEXOPT solved by dex.disable.merger=true


    If everything failed please put your verbose logcat

    0 讨论(0)
提交回复
热议问题