在项目中导入RNFirebase库时,我的构建失败 snap source here
这是我的傻瓜
dependencies {
compile(project(':react-native-firebase')) {
transitive = false
}
compile "com.facebook.react:react-native:+"
compile project(':react-native-google-signin')
compile project(':react-native-fbsdk')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile(project(":react-native-google-signin")){
exclude group: "com.google.android.gms" // very important
}
compile "com.google.android.gms:play-services-base:11.6.0"
compile "com.google.firebase:firebase-core:11.6.0"
compile "com.google.firebase:firebase-auth:11.6.0"
}
答案 0 :(得分:0)
您要导入react-native-google-signin
两次。
删除第一个条目:compile project(':react-native-google-signin')
并离开:
compile(project(":react-native-google-signin")){
exclude group: "com.google.android.gms" // very important
}