In release 1.6.0-rc01 of CMP, <https://github.com/...
# compose
j
In release 1.6.0-rc01 of CMP, https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.6.0-rc01 there is section:
Copy code
Could 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?
Setup is:
Copy code
pluginManagement {
    includeBuild("gradle/build-logic")

    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}

dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        mavenLocal()
    }
}
d
Hello! Yes, this is known problem. Please pay attention to this Issue: https://github.com/JetBrains/compose-multiplatform/issues/4277
The solution is to find the dependency that depend on
1.6.0-beta02
and downgrade it or ask the author of the library to upgrade it to
1.6.0-rc01
.
j
Yeah I read that but havent been able pinpoint which libraries, if any. Earlier I was able to enforce all libs using same version, but broken since one library using version 1.8.0 for internal CMP libs. Is there a recommended way of doing this I have missed?
I run
./gradlew shared:dependencies
and all libs using rc02 and not beta02 anywhere from what I can see.
d
@Joel Denke - yes,
./gradlew shared:dependencies
should be enought to find a problem library. Can you create and share a minimal reproducible sample project of this problem?
j
I will double check all my modules to be sure, before do. Last time I did repro, I having impact on it, by not having same modular structure like I do in a larger project. Where I think ordering of things seems to matter in CMP world.
thank you color 1