19

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.

casolorz
  • 8,486
  • 19
  • 93
  • 200

1 Answers1

-1

Right Click to Module and you will see that.

enter image description here

M123
  • 1,203
  • 4
  • 14
  • 31
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 05 '22 at 10:47