When you use Android Studio to create a new project, you will find that you cannot download Gradle-0.8.3.jar (and possibly other versions) as follows:
Gradle:download:http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.8.3/gradle-0.8.3.jar
The program has been stuck, but you can just open this address to see if this file is only hundreds of K.
Congratulations, you're under the wall.
You need to configure the Gradle agent in Android Studio, of course, with Goagent.
Open Setting->gradle->gradle VM Options:
-dhttp.proxyhost=127.0.0.1-dhttp.proxyport=8087
After the setup is successful, restart the Androidstudio, the speed will be very fast.
Tips:
Gradle put the downloaded jar package on the path:
D:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle, but the value of a UUID is generated, Do not know how this value is generated, my system environment: Android Studio 0.4.6 gradle.build files in the empty as follows:
Buildscript {
repositories {
mavencentral ()
}
dependencies {
classpath ' com.android.tools.build:gradle:0.8.+ '
}
}
allprojects {
repositories {
mavencentral ()
}
}
which
Classpath ' com.android.tools.build:gradle:0.8.+ '
Represents the jar package that will be downloaded, which is stored in the following path:
D:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\0.8.3\ 6ec4ee59a1de83749cfd3d112e9d987982cc3754\gradle-0.8.3.jar
D:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\0.8.3\ 5a6c951316966332ccde24900fb08bb8be47a407\gradle-0.8.3-sources.jar