com.android.tools.build:gradle:x.xx. XX:gradle.jar

Source: Internet
Author: User

COM.ANDROID.TOOLS.BUILD:GRADLE:X.XX appears when you use the IDE for Android Studio. XX:gradle.jar plugin could not download the problem

The possible reason is that the Internet is not good or the repository-dependent download URL is on the wall. , you can configure the agent to try. For example, Android studio defines an jcenter () warehouse that is dependent on the repository as the default.

Open the Build.gradle file under the project, not under module

allprojects {    repositories {        jcenter ()    }}

Online search for some of the following methods:

The first type:

The Gradle agent needs to be configured in Android Studio, of course with goagent.

Open thegradle VM Options setting-gradle:

-dhttp.proxyhost=127.0.0.1-dhttp.proxyport=8087

after the setup is successful, restarting Android studio will be very fast.

The second type:

Official website method, in the event of a failure to download, the system will automatically prompt! Website Description Stamp Here

Also use goagent proxy

A: Configuring the HTTP Proxy

Open the gradle.properties file under Project

Systemprop.http.proxyhost=127.0.0.1systemprop.http.proxyport=8087systemprop.http.nonproxyhosts=localhost
B: ConfigurationHTTPSAgent
Systemprop.https.proxyhost=127.0.0.1systemprop.https.proxyport=8087systemprop.https.nonproxyhosts=localhost


com.android.tools.build:gradle:x.xx. XX:gradle.jar

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.