本文介绍了Gradle构建失败说:找不到org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Android Studio Canary构建一个新项目,并且在设置Jet Pack的依赖项时,我将其作为构建输出:
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
推荐答案
将jcenter添加到settings.gradle文件的存储库中.您可以指定仅将其用于此缺失的人工制品.它应该看起来像这样:
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")
}
}
}
这篇关于Gradle构建失败说:找不到org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!