Closed FelipeSSantos1 closed 5 months ago
The problem was a old config that we had in our build.gradle, with that config it was trying to download from jcenter instead of from maven
allprojects {
/*
Repositories for the Android dependencies
*/
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
// Android JSC is installed from npm
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
google()
maven {
// Detox configuration
url("$rootDir/../node_modules/detox/Detox-android")
}
maven {
url 'https://www.jitpack.io'
}
jcenter() // Keep JCenter in the last position, it's deprecated and less likely to have the dependencies we need
}
}
the problem was in this block:
mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
Environment
Things I’ve done to figure out my issue
Upgrading version
RN 0.73.7 to 0.73.8
Description
Local build failing for Android
Reproducible demo
N/A