【问题标题】:Execution failed for task ':app:processDebugGoogleServices'. when run ionic cordova build android任务“:app:processDebugGoogleServices”执行失败。当运行 ionic cordova build android
【发布时间】:2019-04-18 17:18:59
【问题描述】:

当我运行命令“ionic cordova build android”时,出现如下错误:

 * What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'ammar_5d767'

我已经尝试了this 步骤,但仍然无法正常工作。 这是我的 config.xml

     <?xml version='1.0' encoding='utf-8'?>
<widget id="ammar-5d767" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Doc.in</name>
    <description>An awesome Ionic/Cordova app.</description>
    <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
    <content src="index.html" />
    <access origin="*" />
<platform name="android">
        <resource-file src="google-services.json" target="app/google-services.json" />
.
.
.
        <allow-intent href="market:*" />
.
.
.
</platform>
<platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
.
.
.
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="2.4.2" />
    <plugin name="cordova-plugin-device" spec="2.0.2" />
    <plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
    <plugin name="cordova-plugin-ionic-webview" spec="^3.0.0" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
    <plugin name="cordova-plugin-firebase" spec="2.0.5" />
    <engine name="android" spec="7.1.4" />
</widget>

我找到了一些解决方案,但仍然无法正常工作。

【问题讨论】:

    标签: firebase ionic-framework google-cloud-firestore google-play-services


    【解决方案1】:

    项目文件夹中缺少您的 Googleservice.json 文件,该文件夹可在 Firebase 控制台中找到。

    【讨论】:

      猜你喜欢
      • 2019-08-05
      • 1970-01-01
      • 2018-05-28
      • 2015-08-19
      • 2016-10-18
      • 1970-01-01
      • 2018-06-16
      • 1970-01-01
      相关资源
      最近更新 更多