Jake, That script will help A LOT. Thanks for all the help. -Rindress
On Thu, Jan 16, 2014 at 11:25 AM, Jake Wharton <[email protected]>wrote: > This script might help you: https://gist.github.com/JakeWharton/6002797 > > The second method (which runs really slowly) will give you a summary of > the number of methods that each java package contributes. > > > --- > Jake Wharton > http://about.me/jakewharton > > > On Thu, Jan 16, 2014 at 7:55 AM, Rindress MacDonald < > [email protected]> wrote: > >> Scott, >> Thanks so much for the quick response, I appreciate it. I'll start >> 'pruning' now :-) >> >> -Rindress >> >> >> On Thu, Jan 16, 2014 at 10:47 AM, Scott Barta <[email protected]> wrote: >> >>> There is a 64k upper bound on the number of methods you can have in a >>> single dex file. It sounds like you're hitting it. You'll need to look at >>> economizing, jettisoning any libraries you can do without, and/or using >>> Proguard to strip unused symbols. There are methods of using multiple dex >>> files in one APK, and they're a little complicated, but it's necessary for >>> many developers. >>> >>> >>> On Thu, Jan 16, 2014 at 4:49 AM, <[email protected]> wrote: >>> >>>> >>>> I'm trying to include volley in my project. I've updated the >>>> build.gradle file and added: >>>> >>>> However, now when I 'gradle clean assembleDebug' I'm getting an issue >>>> with dexMerger: >>>> >>>> UNEXPECTED TOP-LEVEL EXCEPTION: >>>> >>>> java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536 >>>> >>>> at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:499) >>>> >>>> at >>>> com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:274) >>>> >>>> at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:488) >>>> >>>> at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:165) >>>> >>>> at com.android.dx.merge.DexMerger.merge(DexMerger.java:186) >>>> >>>> at >>>> com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300) >>>> >>>> at com.android.dx.command.dexer.Main.run(Main.java:232) >>>> >>>> at com.android.dx.command.dexer.Main.main(Main.java:174) >>>> >>>> at com.android.dx.command.Main.main(Main.java:91) >>>> >>>> :myApp:dexDebug FAILED >>>> >>>> Any ideas on what might be causing this? I've tried building volley >>>> from git and adding the jar to the libs as well with the same results. If >>>> I just remove the reference everything builds fine. >>>> >>>> Please let me know if there is any other information that would be >>>> useful in debugging this. I've included the full dex line below. >>>> >>>> >>>> Thanks in advance, >>>> >>>> Rindress >>>> >>>> >>>> DEX output >>>> >>>> /Users/rindress/devtools/android-sdk-macosx/build-tools/17.0.0/dx >>>> --dex --output >>>> /Users/rindress/git/android-nga/myapp/build/libs/myapp-debug.dex >>>> /Users/rindress/git/android-nga/myapp/build/classes/debug >>>> /Users/rindress/git/android-nga/myapp/build/dependency-cache/debug >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/android-switch-backport-40d13bc1fad0423d65a95d2b06abcb9675345b6d.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/classes-153848e9ef46caaed4aa52d790812ddfd500307f.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/classes-19ddd527912f30267346c437cc84f5bbd4923c06.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/classes-b2639f2d7b60e8154da793af65403b924e28b5f7.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/commons-codec-1.8-8bf5aa40fc46e8dcad2f08342c4e1c4103943c8d.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/cwac-wakefulintentservice-f0f16fe0d7ae2e5b223c4e75fc572c2c704120ae.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/facebook-1.1.1-97e5701e11713b94cac85b3494ef4b3f07bc8466.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/google-api-client-1.4.1-beta-507d1e0e92024a7773445639eca5b5a5c91b6cfa.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/google-api-client-googleapis-1.4.1-beta-9d0122c332e58c2bc4229e8197160ca4c54d5769.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/google-api-client-googleapis-extensions-android2-1.4.1-beta-04ea4a931415c284b16868be6d3980d43355e7e9.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/gson-2.2.4-5caf14d8f708ea49e40220422eba54f7be03b4ed.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/guava-15.0-a5456f9056eb489225c53f9b44d12a92602930d6.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/httpcore-4.3-6c9db2e6a254c69f739f27d39acc4b163983019d.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/jackson-core-asl-1.6.7-eccb5b69cb41fdbf5d0f42377df508452b6941f8.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/jsr305-2.0.2-106c34262d13a0bfdfbc5eaf0cd963b8ab5e6fb8.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/junit-4.8.2-97a03a95d48da1f6377e60144e5327a849e413aa.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/libGoogleAnalyticsServices-0b363ccb44eb44f0d0e7683a5affa69206aeceb6.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/library-2.4.0-159a19fb81fbe23a1baaa6e6a77248e4c7cd5af9.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/log4j-1.2.16-e0251aa01ba3f987bcc951fcc5f39856d7568984.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/logback-android-1.0.10-2-a8a906162d46b621a8b8620441b8690b2a69f860.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/ormlite-android-4.47-62323564ce6756e4f3bd79da039ebf735c660475.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/ormlite-core-4.47-ceadd086f0e2c93605a40020d65450033dddca87.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/places-api-client-1.0.0-2632053fc969b6631c6e5594ea68d1ecb985af3d.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/protobuf-java-2.5.0-5da2d01bfd1d3de663209d24c2d116b7a400d69d.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/slf4j-api-1.7.5-8527de32bb4c63d7ae768bb77b423e6cb421a720.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/support-v4-18.0.0-6c795cba05b02f7a75a7d28293379dd6d7180e5e.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/urlimageviewhelper-1.0.4-abe0a21f435e32185eb3ef741b14f6e6383c9ee0.jar >>>> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/volley-ce6c044fdaa895c9a3dcd680bbd75d659ee2287a.jar >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "adt-dev" 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/groups/opt_out. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "adt-dev" 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/groups/opt_out. >>> >> >> >> >> -- >> >> * Rindress MacDonald* >> Principal Software Engineer >> Ping4 Inc. | Office: 603.864.8880 x20 >> Cell: 603.718.4309 | E-mail: [email protected] >> Facebook <http://www.facebook.com/Ping4alerts> | >> Twitter<http://twitter.com/Ping4alerts>| >> Youtube <http://www.youtube.com/user/ping4alerts> | >> Ping4.com<http://www.ping4.com> >> >> Hyperlocal Mobile Alerts*™* >> This message is intended only for the use of the individual or entity >> named above and may contain information which is privileged, confidential, >> and not intended for disclosure. If you are not the intended recipient, you >> are hereby notified that any disclosure, copying, distribution, >> dissemination or use of this message is strictly prohibited. If you have >> received this message in error, please accept our apology. We would very >> much appreciate your notifying the sender immediately by return email. >> Thank you. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" 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/groups/opt_out. >> > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" 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/groups/opt_out. > -- * Rindress MacDonald* Principal Software Engineer Ping4 Inc. | Office: 603.864.8880 x20 Cell: 603.718.4309 | E-mail: [email protected] Facebook <http://www.facebook.com/Ping4alerts> | Twitter<http://twitter.com/Ping4alerts>| Youtube <http://www.youtube.com/user/ping4alerts> | Ping4.com<http://www.ping4.com> Hyperlocal Mobile Alerts*™* This message is intended only for the use of the individual or entity named above and may contain information which is privileged, confidential, and not intended for disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, dissemination or use of this message is strictly prohibited. If you have received this message in error, please accept our apology. We would very much appreciate your notifying the sender immediately by return email. Thank you. -- You received this message because you are subscribed to the Google Groups "adt-dev" 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/groups/opt_out.
