I am trying to integrate my application with Box, Dropbox, and Google Drive. All 3 of these services require a number of 3rd party jars. Additionally, my application alrea
I faced this issue recently. After scouring the web for some more detailed implementation, I realized there wasn't much out there other than:
I realized that the problem was not necessarily that there were too many methods in my code, but that the full dex
of my code and other libraries was the issue. So, if I could compile my code against the libraries but not include them in the classes.dex
, and then dex
the libraries separately, and then put it all together at runtime it should work. The only issue left to address is the class loader, which Facebook mentioned in passing.
So with a little reflection and some Groovy code, I think I came up with a relatively stable way to package the libraries and the application code into separate dex
files.
https://gist.github.com/nickcaballero/7045993