在使用android studio开发android时候,gradle更新时候遇到;‘
Gradle sync failed: Could not GET 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'. Received status code 400 from server: Bad Request
Consult IDE log for more details (Help | Show Log) (15s 572ms)
’
这都是因为国内网络,无法FQ的原因造成,需要对网络做代理;
第一步:打开 build.gradle文件
更改如下:
repositories { maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } google() jcenter { url "http://jcenter.bintray.com/"} }
第二步:更新android studio 设置里面gradle