Skip to content

Gradle version catalogs lint reports for unused dependencies workarounds #1226

Closed Answered by SimonMarquis
JackEblan asked this question in Q&A
Discussion options

You must be logged in to vote

This is an Android Studio "feature" to detect used references.
Unfortunately, when using untyped references like what is done in convention plugins:

extensions.getByType<VersionCatalogsExtension>().named("libs").findLibrary(alias)

Android Studio can't magically make the connection between this alias and the libs.versions.toml file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JackEblan
Comment options

Answer selected by JackEblan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants