Android Studio Gradle Download no response

Source: Internet
Author: User

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




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.