I am trying to build react-native android app, as a dependecy I see I have gradle, but it fails to load on build. Error message:
* What went wrong:
A problem
I had same problem and fixed it.
gradle is forced to get dependencies from jcenter through https proxy.
if you add
maven { url "http://jcenter.bintray.com" }
in your repositories instead of jcenter()
, gradle sees this repository as a simple maven repository with http proxy.
your project build.gradle
should be like below:
buildscript {
repositories {
maven { url "http://jcenter.bintray.com" }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
}
}
allprojects {
repositories {
maven { url "http://jcenter.bintray.com" }
}
}