Could not find org.jetbrains.kot

2020-12-03  本文已影响0人  莫伊剑客

出现问题

Could not find org.jetbrains.kotlin:kotlin-stdlib:1.1.3-2.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.pom
https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.jar
Required by:
project : > com.android.tools.build:gradle:3.0.1 >

解决:在两个repositories中加上相应代码。

buildscript {
    allprojects {
        repositories {
            google()
            jcenter()
            mavenCentral()
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
    repositories {
        jcenter()
        mavenCentral()
        google()
    }
}
上一篇 下一篇

猜你喜欢

热点阅读