Hi, you can check this link - https://medium.com/@rotxed/dex-skys-the-limit-no-65k-methods-is-28e6cb40cf71 The idea behind that solution is manual Play Services lib stripping.
Hope it helps, Alex On Wednesday, December 17, 2014 9:22:37 PM UTC+1, Nathan wrote: > > I was wondering what all the fuss was over the Dex limit, till I included > Google Play Services. > > Right away, I got the dreaded error: > > Conversion to Dalvik format failed: > Unable to execute dex: method ID not in [0, 0xffff]: 65536 > > So now I am referring to the official guide: > > Building Apps with Over 65K Methods: > https://developer.android.com/tools/building/multidex.html > > It says, I think, that on Android 5.0 I will be fine. > Good so far. > On pre 5.0, use the multidex support library. > Okay, so I included android-support-multidex.jar in libs folder. > > The next section is > Configuring Your App for Multidex with Gradle > Hmm, no section for Configuring Your App for Multidex with ADT/Eclipse > They weren't kidding about dropping support for ADT like a rock. > > A colleague found this > > http://stackoverflow.com/questions/13439882/android-error-in-eclipse-unable-to-execute-dex-cannot-merge-new-index-65799-i > Suggesting that we should use > dex.force.jumbo=true > in each project.properties. > It seemed to work for him > I don't know if this applies to the android libraries like appcompat and > Google Play Services. > > I tried it. Didn't help. > Still getting this when I try to debug: > > Conversion to Dalvik format failed: > Unable to execute dex: method ID not in [0, 0xffff]: 65536 > > Saw this article too: > > http://android-developers.blogspot.com/2014/12/google-play-services-and-dex-method.html > Hmm, these instructions are also only for Gradle. No way to do it in ADT? > > So my questions are: > *Can I get around this in ADT/Eclipse or should I speed up the migration > to Android Studio. ? * > > I see this note at the bottom: > > *Note:* Use of multidex for creating a test APK is not currently > supported > > Does this mean no more debugging my code? > Just ship it to Google Play and hope for the best? > We are all Klingon warriors now - we do not debug - our software does not > coddle the weak. ;) > > Nathan > > > > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

