dex loader unable to execute dex: method ID not in [0, 0xffff]: 65536

user3230564 picture user3230564 · Sep 19, 2014 · Viewed 21.7k times · Source

iam building my application i got this error

Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (com.amazonaws.javax.xml.stream.xerces.util.SecuritySupport12$4) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class.

Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536 Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536

Answer

Driss Bounouar picture Driss Bounouar · Sep 24, 2014

Check the build path -> Java Build Path -> Order and Export tab -> uncheck Android private Librairies.

If it is still not working, add the following line : dex.force.jumbo=true to the project.properties file.

The probable cause is maybe a big sized jar in build path.

Edit : This is deprecated because Eclipse is no longer supported by Google, if you wanna get rid of these annoying problems : use Android Studio and enable Multidex.