任务':app:processDebugGoogleServices'执行失败。当运行离子科尔多瓦建立Android

时间:2019-04-18 17:19:00

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

当我运行命令“ 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>

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

1 个答案:

答案 0 :(得分:0)

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