问题如下:
<strong><span style="font-size:24px;"> > Could not download gradle-core.jar (com.android.tools.build:gradle-core:2.2.1)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle-core/2.2.1/gradle-core-2.2.1.jar'.
>Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle-core/2.2.1/gradle-core-2.2.1.jar'.
> Connect to 127.0.0.1:8080 [/127.0.0.1] failed: Connection refused: connect</span></strong>
这个错误原因,是连接超时,很可能是被我帝国墙了,解决办法如下:
打开项目的gradle.properties文件,插入下面内容:
<span style="font-size:24px;"><strong>systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=8087
systemProp.http.nonProxyHosts=localhost</strong></span>
希望能帮助其他人解决这个问题