1

FCMによるIonic3のプッシュ通知を実装しようとしています。私はIonic FCM docsのようにすべてを追ってきました。すべてがスムーズに進みましたが、ビルドしようとすると、私は以下のエラーが発生しました。これを修正するには、事前に感謝します。FCMプラグインのインストール後にビルドに失敗する

BUILD FAILED 
    Total time: 2.138 secs 
    Error: cmd: Command failed with exit code 1 Error output: 
    FAILURE: Build failed with an exception. 

    * What went wrong: 
    Execution failed for task ':processDebugGoogleServices'. 
    > Please fix the version conflict either by updating the version of the google-services plugin (information 
    about the latest version is available at 
    https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of 
    com.google.android.gms to 9.0.0. 

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

答えて

0

これを試してください:あなたのpluginsフォルダに移動し、FCMプラグインのフォルダを開きます。そして、あなたはsrc/androidとオープンFCMPlugin.gradleに移動し、次の行を変更します。この1

classpath 'com.google.gms:google-services:3.1.1' 

保存するために

classpath 'com.google.gms:google-services:3.0.0' 

ファイルを、(cordova platform add androidを)その後、Androidプラットフォーム(cordova platform rm android)を削除し、再度追加します。

+1

私はそれを試しましたが、同じエラーが発生しました。 – Niraj

+0

あなたの他のプラグインの1つは、Googleサービスの異なるバージョンを使用しています。どちらを探してバージョンを同じものに変更する必要があります。 – David

関連する問題