Error while installing application (INSTALL_FAILED_DEXOPT)

PrashantAdesara picture PrashantAdesara · Feb 16, 2013 · Viewed 7.9k times · Source

I am working with ccr4j API in Android so when I run my project its thrown an error like:
Error while installing application (INSTALL_FAILED_DEXOPT)

I find from net and same site also, did all trying like,
1. Uninstalled same application from device.
2. Run Emulator with Wipe User Data.
But still same error comes.

So anyone know why its thrown this kind of error?

Answer

Jared Rummler picture Jared Rummler · Mar 18, 2013

This most likely has to do with the size of classes.dex. On anything pre-ICS dexopt will fail on anything over 5mb. Check the size of classes.dex in your apk. It would also be good to see what your method count is as dex has a 65536 method/field limit.