升級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版本