Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable install app into emulator 2.3.3 : INSTALL_FAILED_DEXOPT

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

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

I had tried to install app on emulator 2.3.3, both for ARM and Intel. However, it no longer work (It used to work in my same Win64 machine before I'm using latest adt)

Installation error: INSTALL_FAILED_DEXOPT
Please check logcat output for more details.
Launch canceled!

My emulator setting is as follow.

enter image description here

I had followed how to solve INSTALL_FAILED_DEXOPT this error?. It doesn't help for my case.

Note that, emulator with 4.1.2 work extremely well for Intel. I even try to email the APK, and download -> install from emulator. But, this is what I'm getting Application not installed

enter image description here

Any workaround to overcome this problem?

My logcat is having such logging

E/PackageManager(855): Package org.yccheok.jstock.gui has mismatched uid: 10031 on disk, 10033 in settings
E/dalvikvm(1241): LinearAlloc exceeded capacity (5242880), last=468
E/dalvikvm(1241): VM aborting
E/installd(798): dexopt failed on '/data/dalvik-cache/data@[email protected]@classes.dex' res = 11

Note, the problem will not occur, if I were using emulator 4.1.2

like image 785
Cheok Yan Cheng Avatar asked Oct 03 '22 10:10

Cheok Yan Cheng


1 Answers

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

like image 93
Yash Krishnan Avatar answered Oct 08 '22 05:10

Yash Krishnan