Can't Repro
Status Update
Comments
uc...@google.com <uc...@google.com> #2
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
su...@gmail.com <su...@gmail.com> #3
Is there any update on this issue?
es...@google.com <es...@google.com>
ku...@google.com <ku...@google.com>
es...@google.com <es...@google.com> #4
The increase in method references could be attributed to many things after a refactoring. From methods that need to be made public that cannot be optimized out, to synthetic methods needed to be added. It's unfortunately not possible to analyze this with little information and does not seem to be an issue in the tooling.
For the mismatch in the total number of methods, I cannot reproduce that with a variety of apks, if you have an apk that ilustrate the issue, please attach it in a new bug.
For the mismatch in the total number of methods, I cannot reproduce that with a variety of apks, if you have an apk that ilustrate the issue, please attach it in a new bug.
Description
We observed drastic increase in the number of methods referenced in our app after splitting 'app' module into several small modules. But strange thing is that the addition of referenced methods by each class is less than the mentioned total in Android Apk Analyzer Tool.
For test purpose, I have moved WebActivity.class from 'app' module to 'adapters' module and referenced method count increased by 181 methods.
To Summarize:
app/WebActivity = 63546 Actual referenced methods but showing 65394 methods.
adapter/WebActivity = 63543 Actual referenced methods but showing 65575 methods.
We have observed 'referenced method count' increased by almost 10k after adding/splitting 4 new modules.
What is the exact issue?
How app modularization can increase the referenced method count drastically so high?
Following are the screenshots I taken of two different APKs-only difference is WebActivity moved from 'app' module to 'adapter' module and 181 referenced methods increased:
Also, from the screenshots, why addition of referenced methods by each class (marked in red color) is not equal to total given in Apk Analyzer?