React Native Firebase版本使应用程序崩溃

时间:2019-03-27 05:31:17

标签: react-native react-native-android react-native-firebase

我在app / gradle中具有以下依赖项

  implementation project(':react-native-firebase')
    implementation "com.google.firebase:firebase-auth:11.+"
    implementation "com.google.firebase:firebase-core:11.+"
    implementation "com.google.firebase:firebase-firestore:11.+"
    implementation "com.google.firebase:firebase-database:11.+"
    // implementation "com.google.firebase:firebase-auth:11.+"
    implementation(project(':react-native-maps')) {
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    implementation 'com.google.android.gms:play-services-base:11.+'
    implementation 'com.google.android.gms:play-services-maps:11.+'
    implementation 'com.google.android.gms:play-services-location:11.8.0'
    implementation project(':react-native-geolocation-service')
    // implementation project(':react-native-background-timer')
    // implementation project(':react-native-mauron85-background-geolocation')
    implementation project(':react-native-contacts')
    implementation project(':react-native-gesture-handler')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules

在上述配置下,firebase查询无法正常运行,它同时引发了onsnapshot或get()事件的错误。

当我按照更新的说明更改Firebase版本

implementation project(':react-native-firebase')
    implementation "com.google.firebase:firebase-core:16.0.8"
    implementation "com.google.firebase:firebase-auth:16.2.0"
    implementation "com.google.firebase:firebase-database:16.1.0"
    implementation "com.google.firebase:firebase-firestore:18.1.0"
    implementation(project(':react-native-maps')) {
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }

    implementation 'com.google.android.gms:play-services-location:15.0.1'
    implementation project(':react-native-geolocation-service')
    implementation project(':react-native-contacts')
    implementation project(':react-native-gesture-handler')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules

应用程序崩溃

请帮助,因为我已经开始学习它,所以无法获得它

谢谢

0 个答案:

没有答案