升级AndroidStudio或者导入其他电脑项目时,有时报错:
android studio Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 Bad Request”
见:Gradle project refresh failed after AndroidStudio update
I solved this problem.Just changed the information in gradle->wrapper->gradle-wrapper.properties->distributionUrl=https://services.gradle.org/distributions/gradle-2.4-all.zip to https://services.gradle.org/distributions/gradle-2.8-all.zip.And it works for me.
也就是需要更改gradle版本