【发布时间】:2020-05-17 20:39:36
【问题描述】:
在我添加 firebase 插件之前,我的 nativescript 应用程序运行良好。现在,当我在我的设备上运行它时,它会给出错误消息 'app has stop working' 。请帮忙
这是我正在使用的插件 https://github.com/EddyVerbruggen/nativescript-plugin-firebase
【问题讨论】:
-
你添加了 google-services.json 文件吗?
-
是的,我有。但要明确一点,它必须与我的 AndroidManifest.xml 位于同一文件夹中。因为文档说我应该把它放在这里
C:\Users\user\tabs\app\App_Resources\Android\google-services.json但我的 androidmanifest 在这里`C:\Users\user\tabs\app\App_Resources\Android\src` -
您使用 Firebase 的哪些服务?您是否确保在
firebase.nativescript.json中启用了您使用的所有服务?您是否尝试过干净的构建?您是否编写了在启动/初始化方法时访问插件 API 的任何代码? -
是的,在其文档中,它说我应该将 fiebase.init 添加到我的 app.js 中,我做到了。我也会尝试你的其他解决方案@Manoj
标签: android firebase nativescript nativescript-firebase