Gradle 构建失败说:找不到 org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3

Sau*_*Raj 2 android android-jetpack-compose

我正在使用 Android Studio Canary 构建一个新项目,在为 jet pack compose 设置依赖项时,我将其作为构建输出:

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

Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

mus*_*ikk 7

将 jcenter 添加到 settings.gradle 文件的存储库中。您可以指定它只应用于此丢失的人工制品。它应该是这样的:

repositories {
    google()
    mavenCentral()
    //noinspection JcenterRepositoryObsolete
    jcenter {
        content {
            includeModule("org.jetbrains.kotlinx", "kotlinx-collections-immutable-jvm")
        }
    }
}
Run Code Online (Sandbox Code Playgroud)