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

ERROR: Could not download protobuf-java.jar (com.google.protobuf:protobuf-java:3.4.0): No cached version available for offline mode

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

亲测有效方案:

Could not find org.jetbrains.kotlin:kotlin-stdlib_第1张图片

将对应文件中的该部分代码修改为(只修改对应部分即可):

repositories {
        google()
        jcenter(){
            url "http://jcenter.bintray.com/"
        }
        mavenCentral()
    }
allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral() // add repository
    }
}

 

你可能感兴趣的:(安卓)