Find unused classes in Android codebase

Eric N
2 min readDec 15, 2020
Photo by Ed Leszczynskl on Unsplash

Problem

Even though Proguard and R8 removed the unused code for you at release time, you should still make effort to remove dead code to reduce confusion, increase productivity of your everyday work and onboarding.

Solution

For starter, none of the static code analysis tools (SonarQube, CheckStyle, Pmd, Findbugs, Android Lint) I know…

--

--