2
When I open Android Studio, it fails to synchronize the project with this "Gradle", it returns the following error in "Messages Gradle Sync"
Error:
Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.jar'. Received status code 403 from server: Forbidden Enable Gradle 'offline mode' and sync project
Imagery:
build.Gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
}
}
Gradle-wrapper.properties
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
You know what it can be?
very good congratulations
– Otto
"Depois que o issue for resolvido, pode voltar ao normal"
. It is mandatory to return to normal?– Leonardo
It’s not mandatory, I wore the
mavenCentral
, but it seems to me that they (Google) are "forcinga migração para o
jcenterpor alguma razão (não sei ainda). Essa migração é vista quando você cria um projeto Android novo no Android Studio e ele coloca o
jcentercomo padrão em vez do
mavenCentral` (which was the previous standard). This question by SO en comments on the subject.– Wakim