Could not find org.jetbrains.kotlin:kotlin-stdlib:1.1.3-2.

出现问题

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()
    }
}
    原文作者:Android唐浮
    原文地址: https://blog.csdn.net/u011368551/article/details/84071403
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞