gpt4 book ai didi

android - Gradle 构建失败说 : Could not find org. jetbrains.kotlinx :kotlinx-collections-immutable-jvm:0. 3.3

转载 作者:行者123 更新时间:2023-12-05 00:09:32 29 4
gpt4 key购买 nike

我正在使用 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

enter image description here

最佳答案

将 jcenter 添加到 settings.gradle 文件的存储库中。您可以指定它应该只用于这个丢失的 Artifact 。它应该看起来像这样:

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

关于android - Gradle 构建失败说 : Could not find org. jetbrains.kotlinx :kotlinx-collections-immutable-jvm:0. 3.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66710318/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com