这是一个问题
react-native-fabric
自己的build.gradle文件。。。以及JCenter maven存储库。
看看他们github上的这个问题:
https://github.com/corymsmith/react-native-fabric/issues/200
node_module/react-native-fabric/android/build.gradle
文件(更改maven存储库顺序,将Jcenter向下移动到Google)
编辑
node_module
android/build.gradle
). 这是我的配置修复了它(我不是Gradle专家,你的可能不同)
allprojects {
repositories {
mavenLocal()
google()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
// Firebase : Google Play services from 11.2.0 +
url 'https://maven.google.com'
}
jcenter()
configurations.all {
resolutionStrategy {
// fix dependency problem on react-native-maps 0.20.1
//force "com.android.support:support-v4:27.1.0"
}
}
}
buildscript {
repositories {
mavenLocal()
google()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
// Firebase : Google Play services from 11.2.0 +
url 'https://maven.google.com'
}
jcenter()
configurations.all {
resolutionStrategy {
// fix dependency problem on react-native-maps 0.20.1
//force "com.android.support:support-v4:27.1.0"
}
}
}
}
}