0

在此处的项目快照源中导入 RNFirebase 库时,我的构建失败

这是我的毕业典礼

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"

}

4

1 回答 1

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
}
于 2018-02-09T07:58:12.663 回答