【发布时间】:2020-07-03 08:19:14
【问题描述】:
我将react-native-firebase 用于数据库,react-native-camera 使用firebase-mlkit。当我安装“react-native-firebase”时出现问题,现在我收到此错误:
Could not determine the dependencies of task ':react-native-firebase_app:compileDebugAidl'.
> The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.2.2,17.2.2]], but resolves to 17.2.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
这是我对库的 gradle 实现:
implementation "com.google.firebase:firebase-analytics:17.2.2" // Firebase analytics
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-database:17.0.0'
我检查了之前的 stackoverflow 问题,并尝试将 firebase-core 和 firebaser-database 版本更改为与 firebase-analytics 相同的版本,但这在解析包路径时出错。我尝试用“+”替换版本,但没有奏效。
【问题讨论】:
标签: firebase react-native firebase-realtime-database react-native-android react-native-firebase