我已经安装了本机条带,我收到了这个错误。但是当我安装另一个包时,它永远不会发生。然后这是我的build.gradle文件。
机器人/应用/的build.gradle
dependencies {
compile project(':react-native-vector-icons')
compile project(':react-native-fetch-blob')
compile project(':react-native-image-picker')
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-vector-icons')
compile project(':tipsi-stripe')
compile 'com.google.firebase:firebase-core:+'
compile 'com.google.firebase:firebase-messaging:+'
compile(project(":react-native-google-signin"))
compile(project(':react-native-fbsdk')){
exclude(group: 'com.facebook.android', module: 'facebook-android-sdk')
exclude group: "com.google.android.gms"
}
compile 'com.google.android.gms:play-services-auth:9.2.1'
compile "com.facebook.android:facebook-android-sdk:4.22.1"
}
configurations.all {
resolutionStrategy {
force 'com.facebook.android:facebook-android-sdk:4.22.1'
}
}
答案 0 :(得分:0)
使用相同版本的Firebase和Google Play服务库。
compile 'com.google.firebase:firebase-core:9.2.1'
compile 'com.google.firebase:firebase-messaging:9.2.1'
compile 'com.google.android.gms:play-services-auth:9.2.1'
或者最新的(它还需要支持v.26和compileSdk = 26)
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-messaging:11.4.2'
compile 'com.google.android.gms:play-services-auth:11.4.2'