5

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

2
  • What does logcat say?
    – Vikram
    Jul 26, 2013 at 19:35
  • Not really. I accept it as I see it might be helpful to others. But not me. I end up using emulator from Android Studio. Not convenient, as my project is in Eclipse. Aug 19, 2013 at 4:42

4 Answers 4

2

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

1

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

1

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.

1
  • 1
    thanks for you advice (not helped for me, but leads to solution). I have to UNCHECK PRE-DEX EXTERNAL JARS...DEPENDENCIES. I use IntelliJ Idea, if you stranger too - go to Project Structure - Modules - Packaging
    – djdance
    Jul 2, 2014 at 18:14
0

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

Try the following

Good luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.