Could not GET .....code 403 from server: Forbidden的错误

错误:

Could not GET 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'. Received status code 403 from server: Forbidden

解决办法:

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

 

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

 

Could not GET .....code 403 from server: Forbidden的错误_第1张图片

你可能感兴趣的:(Android)