Joel Denke
02/26/2024, 7:10 AMCould not find androidx.annotation:annotation:...
(or org.jetbrains.compose.collection-internal:collection)
It happens because 1.6.0 depends on collection and annnotation libraries that are available only in the Google Maven repository.
I have added google() to all my repositories. But it still fails, no matter what I do. Added into both convention plugin settings.gradle.kts and compose root folder.
What am I missing?Joel Denke
02/26/2024, 7:11 AMpluginManagement {
includeBuild("gradle/build-logic")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
mavenLocal()
}
}
Dima Avdeev
02/26/2024, 9:21 AMThe solution is to find the dependency that depend onand downgrade it or ask the author of the library to upgrade it to1.6.0-beta02
.1.6.0-rc01
Joel Denke
02/26/2024, 9:25 AMJoel Denke
02/26/2024, 9:27 AM./gradlew shared:dependencies
and all libs using rc02 and not beta02 anywhere from what I can see.Dima Avdeev
02/26/2024, 9:39 AM./gradlew shared:dependencies
should be enought to find a problem library.
Can you create and share a minimal reproducible sample project of this problem?Joel Denke
02/26/2024, 10:02 AM