android lint unused resources from library module are used in app

My app is split up in a main app and different library modules.
When I run

./gradlew lint 

each module is checked independently and for each module a lint.xml file is generated. In the lint.xml files there were tons of unused resources warnings, but that resources are used in the main app.
How can I configure lint to check globally in the app if a resources is used or not?

  • Illegal key size
  • Android connection to localhost
  • How to get charles proxy work with Android 7 nougat?
  • Android: How to get accurate altitude?
  • Android NDK incremental build
  • Gradle error: could not execute build using gradle distribution
  • Thanks 🙂

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.