【发布时间】:2020-02-20 01:26:21
【问题描述】:
我创建了一个使用 google maps API 及其开发工具的 ionic 4 项目。我现在想为 android 版本构建 peoject 我运行了命令
ionic cordova build --release android
然后我收到以下错误消息
* What went wrong:
Execution failed for task ':app:processReleaseGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
我已经从 firebase 下载了 google-services.Json,但我不确定我应该把它放在哪里以及我需要编辑哪些文件。如果你想要某个文件的内容,请告诉我,我把它放在这里。感谢您的帮助
【问题讨论】:
-
您使用哪个插件来推送通知?如果您使用
FCM插件,请将此文件放在根目录中。如果您使用的是phonegap-push-plugin,请将其放在您的platform/app/src/debug文件夹中。如果调试文件夹不存在,则制作一个。
标签: google-maps ionic-framework