Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle build fails saying : Could not find org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3

I'm building a new project using Android Studio Canary and while setting up dependencies for jet pack compose I get this as build output:

Execution failed for task ':app:processDebugAndroidTestManifest'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3.
     Required by:
         project :app > androidx.compose.runtime:runtime:1.0.0-beta02

enter image description here

like image 972
Saurabh Raj Avatar asked Jan 26 '26 22:01

Saurabh Raj


1 Answers

Add jcenter to the repositories of your settings.gradle file. You can specify that it should only be used for this missing artefact. It should look like this:

repositories {
    google()
    mavenCentral()
    //noinspection JcenterRepositoryObsolete
    jcenter {
        content {
            includeModule("org.jetbrains.kotlinx", "kotlinx-collections-immutable-jvm")
        }
    }
}
like image 50
gpo Avatar answered Jan 28 '26 12:01

gpo