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


#1

今天更新了 idea 2020.1,打开老工程,报错
Plugin [id: ‘org.jetbrains.kotlin.jvm’, version: ‘1.3.71’] was not found in any of the following sources:


#2

新建工程也是报同样的错,是我的repositories有问题吗?

// 新工程
repositories {
    mavenCentral()
}
// 老工程
repositories {
    maven { url 'https://maven.aliyun.com/repository/central' }
    mavenCentral()
    jcenter()
}

#3

解决了 得在gradle里配置下
1.Build and run using:改成Intellij 解决中文乱码问题
2.如果自己设置了gradle目录,重装后得改回目录,不然会出现上述问题。


京ICP备16022265号-2 Kotlin China 2017 - 2018