Stack Overflow archive
1 scoreaccepted

Unable to execute dex: method ID not in [0, 0xffff]:65536 in eclipse

score
1
question views
4.4K
license
CC BY-SA 4.0

You surpassed the 65k method limit in DEX.

Earlier versions of Android build system report the error as follows:

Conversion to Dalvik format failed:

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

You can read about the problem and an official workaround here: http://developer.android.com/tools/building/multidex.html


Google Play Services is a major reason you are reaching this limit. If you switch to the gradle build system you can specify which APIs to compile into your executable. See: https://developers.google.com/android/guides/setup

Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.