Home > Mobile >  Android studio 3.4.1 track compilation for engineering, unable to download gradle - 3.1.2. The pom f
Android studio 3.4.1 track compilation for engineering, unable to download gradle - 3.1.2. The pom f

Time:09-29

> Could not resolve com. Android. View the build: gradle: 3.1.2.
Required by:
Project:
Could not resolve com. Android. View the build: gradle: 3.1.2.
Could not get the resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
Connect to mirrors.dormforce.net: 80/mirrors.dormforce.net/202.115.22.208 failed: Connection timed out: Connect

Above the Android studio's error message, it is strange that will address in the browser can download properly!!

My android studio white, brother have similar problems, give some advice, thank humbly

CodePudding user response:

The
rookie also want to fly to refer to the original poster
& gt; Could not resolve com. Android. View the build: gradle: 3.1.2.
Required by:
Project:
Could not resolve com. Android. View the build: gradle: 3.1.2.
Could not get the resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
Connect to mirrors.dormforce.net: 80/mirrors.dormforce.net/202.115.22.208 failed: Connection timed out: Connect

Above the Android studio's error message, it is strange that will address in the browser can download properly!!

My android studio white, brother have similar problems, give some advice, thank humbly

Was wall , you can directly in the browser can good gradle again moved up and down to see https://blog.csdn.net/qq_23901319/article/details/50418234

CodePudding user response:

To change the build. Gradle
Repositories {
Google ()
//jcenter ()
Maven {url 'http://repo1.maven.org/maven2'}
MavenCentral ()
Maven {url 'https://jitpack.io'}
}
Have a try

CodePudding user response:

reference 1/f, just one little spirit reply:
Quote: refer to the original poster rookie also want to fly to reply:
& gt; Could not resolve com. Android. View the build: gradle: 3.1.2.
Required by:
Project:
Could not resolve com. Android. View the build: gradle: 3.1.2.
Could not get the resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
Connect to mirrors.dormforce.net: 80/mirrors.dormforce.net/202.115.22.208 failed: Connection timed out: Connect

Above the Android studio's error message, it is strange that will address in the browser can download properly!!

My android studio white, brother have similar problems, give some advice, thank humbly

Was wall , you can directly in the browser can good gradle again moved up and down to see https://blog.csdn.net/qq_23901319/article/details/50418234



Thanks for brother, or not, my Android studio version 3.4.1 track is
Brother know gradle - 3.1.2. Pom this thing is what east east, why do you want to download this?

CodePudding user response:

refer to the second floor icecily response:
change build. Gradle
Repositories {
Google ()
//jcenter ()
Maven {url 'http://repo1.maven.org/maven2'}
MavenCentral ()
Maven {url 'https://jitpack.io'}
}
Try


Thanks brother, but still won't do well, changed many address,
Strangely, the address in the browser, can be downloaded in the AS an error, embarrassed, somebody help me,,,,,,,,,,,,,,

CodePudding user response:

reference 4 floor jinyj0306 response:
Quote: refer to the second floor icecily response:

To change the build. Gradle
Repositories {
Google ()
//jcenter ()
Maven {url 'http://repo1.maven.org/maven2'}
MavenCentral ()
Maven {url 'https://jitpack.io'}
}
Try


Thanks brother, but still won't do well, changed many address,
Strangely, the address in the browser, can be downloaded in the AS an error, embarrassed, somebody help me,,,,,,,,,,,,,,

This compilation for the first time to the next, I also recently started contact with android development, I use the above set for the environment, anyhow is also a process also twists and turns, also is varied to try to go to, finally got it, I don't know what it is you,
Oh by the way, there is a thing you can have a try, certificate, the certificate of registration and try again,

CodePudding user response:

Root directory build. Gradle two repositories all want to change, turn order yourself in front, I use ali cloud is

 
Buildscript {
Repositories {
Maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
Maven {url 'https://jitpack.io'}
Google ()
Jcenter ()
}
Dependencies {
.
}
}

Allprojects {
Repositories {
Maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
Maven {url 'https://jitpack.io'}
Google ()
Jcenter ()
}
}

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related