max
max

Reputation: 6187

Analyze methods count of an Android library

I recently in my project get 65536 error message about dex size and blahblah.
and now I'm trying to reduce my dex size but I don't know exactly which of my libraries is adding more size to dex file. I just can see whole dex file size in apk analyzer. Is there a tool or way to analyze dex file and getting information about how many methods this library has and how much adding to my dex file?

Upvotes: 0

Views: 1023

Answers (3)

Petr Kubáč
Petr Kubáč

Reputation: 1640

Also if you prefer to check the methods count in advance, you can check this tool:

www.methodscount.com

UPDATE: Not maintained anymore

Upvotes: 1

Arthur
Arthur

Reputation: 789

Just add multidex support in your project settings. That should solve your problem.

Upvotes: 0

MatPag
MatPag

Reputation: 44861

You should use this gradle plugin

https://github.com/KeepSafe/dexcount-gradle-plugin

It's the best to find the number of methods of your app in total or per library

Upvotes: 2

Related Questions