user2635614
user2635614

Reputation:

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

am getting the error given below after adding google-play-services library into my project

" [2015-08-26 07:59:37 - Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536 [2015-08-26 07:59:37 - my-application] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 "

Am using Android 5.0.1 with target=21, i added dex.force.jumbo=true at the 1st line of my project.properties, this did not worked for me But disabling android-private-properties library worked for me, but i need android-private-library as am using "android.support.v4.widget.DrawerLayout" in xml layout, without private library it wont work. Am using Eclipse IDE Version: Luna Service Release 2 (4.4.2). Kindly please help me on this

Upvotes: 0

Views: 4338

Answers (1)

Jared Rummler
Jared Rummler

Reputation: 38121

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

Upvotes: 1

Related Questions