Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kotlin Kotli n 1.5.0项目升级_Kotlin_Intellij Idea_Gradle Kotlin Dsl - Fatal编程技术网

Kotlin Kotli n 1.5.0项目升级

Kotlin Kotli n 1.5.0项目升级,kotlin,intellij-idea,gradle-kotlin-dsl,Kotlin,Intellij Idea,Gradle Kotlin Dsl,在Idea中将project升级到Kotlin 1.5.0,使用IDE中嵌入的Build提供以下输出: Build file '../../build.gradle.kts' line: 11 Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.5.0'] was not found in any of the following sources: repositories { jcenter() mavenLocal()

在Idea中将project升级到Kotlin 1.5.0,使用IDE中嵌入的Build提供以下输出:

Build file '../../build.gradle.kts' line: 11

Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.5.0'] was not found in any of the following sources:

repositories {
    jcenter()
    mavenLocal()
    mavenCentral()
    gradlePluginPortal()
    maven(url = "https://kotlin.bintray.com/kotlinx")
    maven(url = "https://plugins.gradle.org/m2/")
}

但是,gradle构建工作正常(从CLI独立),因此我在Intellij中缺少sthg?

jcenter()
在gradle 7.x中被弃用(请参阅)。考虑删除这一行。此外,想法的问题经常被文件->无效的缓存固定。