我正在将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
相同的版本,但是在解析程序包路径时出现了错误。我尝试用“ +”代替版本,但这没用。
答案 0 :(得分:0)
我能够通过重新启动计算机并在Android Studio中同步项目来解决该问题。