【问题标题】:I have an error during a build to android in ionic cordova在 ionic cordova 中构建到 android 时出现错误
【发布时间】:2019-08-01 20:13:52
【问题描述】:

当我运行推荐“ionic cordova build android”时,出现错误:

Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'io.ionic.starter'

我的项目中有一个 Firebase。我找到了一些解决方案,但它不起作用。

【问题讨论】:

  • 首先将您项目中的包从 ionic (io.ionic.starter) 更改为您自己的并生成 firebase 自己的 google-services.json

标签: android angular cordova ionic-framework build


【解决方案1】:

google-services.json 中的 id 应该与 config.xml 文件中的 id 相同。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-26
    • 2021-02-27
    • 2020-05-02
    • 2016-07-04
    • 1970-01-01
    • 1970-01-01
    • 2018-04-18
    • 1970-01-01
    相关资源
    最近更新 更多