Check Mobile App
Read now
Start a Project

Analysing method and reference count of Android .apk file

Save

trouble writing output:

Too many field references: 131000; max is 65536.

You may try using multidex option.

 

If you are facing the issue but you are assured that you are not using as many dependencies that can exceed method count of 65k. Then, it’s time to analyse your application.

In the new update Android studio 2.2, you are now able to check the method account of your module as well all the dependencies you are using.

Also, it will let you know the memory consumption of variable dependencies and resources used in the application.

Here is how you can view the method count:

Go to App (your module name) -> build -> outputs -> apk -> your-apk-file.apk 

On clicking classes.dex file you can view the class, method and reference count.

 

1

Stay updated !! happy coding !!

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

Michael Urresta

Michael Urresta

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home