2016-10-28 50 views
0

我使用的離子2.爲了充分利用谷歌推送通知服務的,我需要安裝thisFCM插件丟失的依賴

ionic plugin add cordova-plugin-fcm

但是,這樣做後,我得到這個錯誤時我嘗試構建應用程序:

Error: cmd: Command failed with exit code 1 Error output: 
FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':processDebugGoogleServices'. 
> File google-services.json is missing. The Google Services Plugin cannot function without it. 
    Searched Location: 
    E:\Development\IDE\ionic-apps\theWhoZoo\platforms\android\src\debug\google-services.json 
    E:\Development\IDE\ionic-apps\theWhoZoo\platforms\android\google-services.json 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

所以似乎缺少依賴google-services.json我想。我需要安裝嗎?怎麼樣?

如果有人可以協助,我將不勝感激。

enter image description here

回答

0

解決方案

我複製到google-services.json\platforms\android