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