【问题标题】:Could not determine the dependencies of task ':react-native-firebase_app:compileDebugAidl'无法确定任务 ':react-native-firebase_app:compileDebugAidl' 的依赖关系
【发布时间】: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-corefirebaser-database 版本更改为与 firebase-analytics 相同的版本,但这在解析包路径时出错。我尝试用“+”替换版本,但没有奏效。

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

    • 感谢分享,我通过更新版本解决了
    • 不客气,您能否分享一下您找到解决方案的方式或至少一个链接(这可能对其他人有帮助)。谢谢
    猜你喜欢
    • 1970-01-01
    • 2020-07-11
    • 2020-09-17
    • 2020-10-04
    • 2021-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多