On Thu, Jan 16, 2014, at 7:47, Scott Barta 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.

Another possibility is to replace a library with one that has a smaller
method-count footprint, such as replacing the standard protobuf
generated code with the "nano" edition, or using Square's Wire as a
protobuf client.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_: Version 5.5... And
Still Going Strong!

-- 
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.

Reply via email to