无法确定任务':react-native-firebase_app:compileDebugAidl'的依赖项

时间:2020-03-22 19:25:35

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

我正在将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-corefirebaser-database的版本更改为与firebase-analytics相同的版本,但是在解析程序包路径时出现了错误。我尝试用“ +”代替版本,但这没用。

1 个答案:

答案 0 :(得分:0)

我能够通过重新启动计算机并在Android Studio中同步项目来解决该问题