iosched icon indicating copy to clipboard operation
iosched copied to clipboard

DexIndexOverflowException 65536

Open hesling opened this issue 11 years ago • 10 comments

hi, i just check out the latest code and run le android app module in le AS1.2, then i get le com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 exception what's wrong with it?

hesling avatar Jul 09 '15 08:07 hesling

I'm looking at this now.

PaulRashidi avatar Jul 09 '15 18:07 PaulRashidi

hi, sorry but have you resolved it yet?

hesling avatar Jul 13 '15 03:07 hesling

hello can you send me a link ?

2015-07-13 6:19 GMT+03:00 hesling [email protected]:

hi, sorry but have you resolved it yet?

— Reply to this email directly or view it on GitHub https://github.com/google/iosched/issues/144#issuecomment-120794112.

sulimanQasim avatar Jul 13 '15 03:07 sulimanQasim

link? what kind of link?

hesling avatar Jul 13 '15 03:07 hesling

This Exception normally related to "TOO BIG Dex" problem I suppose. Did you check the MultiDex enable on your project? If not, please refer this to try

https://developer.android.com/tools/building/multidex.html

eneim avatar Jul 13 '15 04:07 eneim

oh, thx, i will have a try

hesling avatar Jul 17 '15 06:07 hesling

Sorry, I have been traveling. Multidexing isn't the correct solution for an app of this size. I'm not able to reproduce your issue issue, but if you enable minification in the android build.gradle file for the debug build variant it should get around the issue but build slower. Alternatively, you can upgrade the 2014 source (the version you're currently seeing) to use the newest Google Play services client lib (7.5) then you can utilize the dependencies like this in build.gradle which will include far less methods in your dex. That requires a little bit of modification of other code since a few things in the library have changed between 6.1 and 7.5 (soon to be 7.8).

def googlePlayServicesVersion = "6.5.87"
compile "com.google.android.gms:play-services-wearable:${googlePlayServicesVersion}"
compile "com.google.android.gms:play-services-drive:${googlePlayServicesVersion}"
compile "com.google.android.gms:play-services-plus:${googlePlayServicesVersion}"
compile "com.google.android.gms:play-services-analytics:${googlePlayServicesVersion}"
compile "com.google.android.gms:play-services-maps:${googlePlayServicesVersion}"

PaulRashidi avatar Jul 20 '15 21:07 PaulRashidi

Many thanks for your replying.

hesling avatar Jul 28 '15 07:07 hesling

Did that resolve the issue for you? The 2015 source (when released) already uses the split client libs and doesn't us the REST-based client libs so dex method/field count isn't an issue.

PaulRashidi avatar Jul 28 '15 16:07 PaulRashidi

Yes, thx, it did! BTW, when exactly will the 2015 source be released?

hesling avatar Jul 29 '15 02:07 hesling