Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle sync failed: my project after update my Android studio from 3.0.1 to 3.1.0 [closed]

I have just updated my Android studio from 3.0.1 to 3.1.0

I am getting this error when Global Gradle setting offline work is disabled

Could not GET 'https://jcenter.bintray.com/com/sun/xml/bind/mvn/jaxb-runtime-parent/2.2.11/jaxb-runtime-parent-2.2.11.pom'. Received status code 502 from server: Bad Gateway Enable Gradle 'offline mode' and sync project

I tried enabling the Global Gradle setting offline work then this error occurs

No cached version of org.glassfish.jaxb:jaxb-runtime:2.2.11 available for offline mode. Disable Gradle 'offline mode' and sync project

like image 299
Vikas singh Avatar asked Mar 27 '18 10:03

Vikas singh


2 Answers

The problem is on the jcenter side, see http://status.bintray.com

Intermittent download failures Identified - There is an intermittent download failures due to an issue with CDN provider. CDN provider is investigating the issue. Mar 17, 21:29 UTC

like image 133
Jozka Jozin Avatar answered Sep 29 '22 14:09

Jozka Jozin


Update your Project build gradle file with maven repo like below and check:

  repositories {
      google()
      jcenter()
      maven { url 'https://maven.fabric.io/public' }
      maven {
        url "https://maven.google.com"
      }
}

Also try with this changes if doesn't work

repositories {
    jcenter {
        url "http://jcenter.bintray.com/"
    }
}


repositories {
    maven  {
        url "http://repo1.maven.org/maven2"
    }
}
like image 42
0xAliHn Avatar answered Sep 29 '22 13:09

0xAliHn