【问题标题】:Firebase not connecting completely with two modules in project where one is library moduleFirebase 没有与项目中的两个模块完全连接,其中一个是库模块
【发布时间】:2017-09-05 20:19:45
【问题描述】:

我在我的应用程序中导入了几个库。其中一个仅在项目文件夹中创建单独的模块时才有效。最后连接到 firebase 后,它没有完全连接。在 firebase 窗格(在 Android Studio 中)它显示:2 个模块中有 1 个已连接。 因此,我无法访问 firebase 中的数据库/存储规则。完全连接我的项目的正确程序是什么?

【问题讨论】:

    标签: android-studio firebase android-library android-module


    【解决方案1】:

    您不会将库模块连接到 Firebase。您只连接应用程序模块。 Firebase 通过在应用的 build.gradle 中添加 google-services.json 文件和 gradle 插件来集成到应用模块中。

    如果您在集成后运行应用时遇到特定问题,请改为发布该问题。

    【讨论】:

      猜你喜欢
      • 2019-05-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多