Android / Eclipse - search for unused files (Java / XML)

We have a large (somewhat cumbersome) project that definitely has files, both Java classes, and XML files (and possibly images) that are no longer in use. Is there any way or way to find out which files are not specified in the project?

I saw this question, but it is not Android specific: Find unused classes in Java Eclipse project

+6
source share
3 answers

In eclipse, you can use the Android Lint tool. Click Window, then Launch Lint Tool. He will find all the problems in the code, which, in his opinion, should be fixed. One of the problems that it detects "Resource R.id.xxx does not seem to be used", and will highlight as a warning all files that, in its opinion, are not used in your project. So far, I have found it pretty accurate.

+4
source

I use and, like the Classpath helper:

http://classpathhelper.sourceforge.net/

This works with Android projects inside Eclipse.

+3
source

The link below is the best way, enjoy!

android-unused-resources

0
source

Source: https://habr.com/ru/post/920724/


All Articles