Reputation: 954
How do we count the number of methods in a Library file.
For eg, a Jar or AAR.
This is required to know the number of android resource IDs used by the library used by the project. This would help in estimating how close we are to 65K dex limit in Android.
Upvotes: 7
Views: 6092
Reputation: 15116
Upvotes: 10
Reputation: 4569
I've created a small shell script that uses a solution, provided on other StackOverflow Answer for jar files. Maybe still could be useful. It takes AAR file and returns methods count. But you have to have Android SDK installed for that.
Upvotes: 1
Reputation: 15625
Why don't you give this site a try, MethodsCount. It also gives you with an awesome Android Studio plugin which add method count beside all your libraries in the build.gradle file.
You can also try this and this. I have tried both of them and they are worth checking.
Upvotes: 3