firebase - 您试图通过调用 firebase.config() 来使用未安装在您的 Android 项目上的 firebase 模块
问题描述
向应用程序添加通知后,我在 android 中收到以下错误。错误:您试图通过调用 firebase.config() 来使用未安装在您的 Android 项目上的 firebase 模块。
确保您拥有:
1) 在“android/app/build.gradle”文件中安装了所需的 Firebase Android SDK 依赖项“com.google.firebase:firebase-config”。
2) 在“MainApplication.java”文件中导入“io.invertase.firebase.config.RNFirebaseRemoteConfigPackage”模块。
3) 在 RN 'getPackages()' 方法列表中添加了 'new RNFirebaseRemoteConfigPackage()' 行。
当我做所有推荐的事情(com.google.firebase:firebase-notifications:16.0.0)时,我发现运行时未找到 firebase-notifications:16.0.0 错误
解决方案
推荐阅读
- html - HTML表单输入类型=“密码”CSS不起作用
- javascript - CORS 不适用于 Firebase 云功能中的特定域
- unit-testing - 如何检查本地新代码的单元测试覆盖率
- javascript - 如何在Angular中的事件函数内调用组件的方法?
- git - IntelliJ IDEA Git 克隆 - 如何删除公钥认证
- reactjs - 如何在 React 上切换侧边栏
- java - 停止录制屏幕时应用程序崩溃
- reactjs - 尝试提取 API 数据并将视频嵌入到反应 js 文件中
- flutter - 如何在 Dart 中格式化日期?
- r - 通过 R Studio 在 R Markdown 中使用 dsfont 包