问题:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
解决:
settings--->gradle--->选择Use local gradle distribution 设置自己的gradle 然后处理下就可以了
问题2:
Error:(21, 0) Gradle DSL method not found: 'android()'
Possible causes:<ul><li>The project 'MyApplication' may be using a version of Gradle that does not contain the method.
<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
解决:
删除项目build.gradle文件中的
android { compileSdkVersion 23 buildToolsVersion '23.0.1' compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } }代码,然后再