Gradle version catalogs lint reports for unused dependencies workarounds #1226
-
Do you have a way to make the gradle version catalogs dependencies as being used and not greyed out? For example, when we declare a dependency into the convention plugins but gradle version catalogs doesn't treat this as being declared and reports as being unused. I hope someone can provide a way for this so my lint will no longer complain, and not by supressing it😂 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is an Android Studio "feature" to detect used references. extensions.getByType<VersionCatalogsExtension>().named("libs").findLibrary(alias) Android Studio can't magically make the connection between this alias and the |
Beta Was this translation helpful? Give feedback.
This is an Android Studio "feature" to detect used references.
Unfortunately, when using untyped references like what is done in convention plugins:
Android Studio can't magically make the connection between this alias and the
libs.versions.toml
file.