遇见Plugin [id: 'org.jetbrains.kotlin.android'] was not found in any of the following sources:?

1.首先检查在构建脚本的顶部没有正确添加Kotlin插件。请确保在构建脚本的顶部添加以下行:

apply plugin: 'kotlin-android'

 2. 确保在构建脚本中使用正确的Kotlin插件版本:

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0"

3.请确保在构建脚本的顶部添加JCenter仓库的声明:

repositories { jcenter() } 

或者 

repositories { mavenCentral() } 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐