I run it this way "Menu -> Analyze -> Run Inspection by Name -> Unused resources" and I select entire project but it doesn't find any unused resources outside my main App Module. So I then run it for individual modules and it finds stuff but it also finds items that are used on other modules.
For example, I have a shared module which has some common strings in it, like "dismiss" for dialogs. The string is not used in that module. When I run the inspection just for that module it finds it as unused.
On the other hand, I have some string on that same shared module that I no longer use anywhere, and when I run the inspections for the entire project, it won't find that string.
I think the issue might be the way I did shared modules, basically they are on different directories I import them putting this on settings.gradle:
include ':androidutils'
project(':androidutils').projectDir = new File( '../sharedlibs/androidutils')
Then in my build.gradle I just import :androidutils
as a dependency.
Anyone else have this issue?
Thanks.