Ionic FCM Issue

i am getting problem this reason i am stuck. when i installed FCM plugin in ionic official website then i have getting problem pls help me.

i already paste google-services.json write place after then i getting same problem.

Thanks

21 actionable tasks: 1 executed, 20 up-to-date
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processDebugGoogleServices’.

File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
C:\Users\Parangat_PT_W3\Desktop\Ionic\DF EVENTS\DFEventFinal\platforms\android\app\src\debug\google-services.json
C:\Users\Parangat_PT_W3\Desktop\Ionic\DF EVENTS\DFEventFinal\platforms\android\app\google-services.json

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

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s
(node:6916) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processDebugGoogleServices’.

File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
C:\Users\Parangat_PT_W3\Desktop\Ionic\DF EVENTS\DFEventFinal\platforms\android\app\src\debug\google-services.json
C:\Users\Parangat_PT_W3\Desktop\Ionic\DF EVENTS\DFEventFinal\platforms\android\app\google-services.json

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

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s
(node:6916) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This fixed it for me after hours of plundering my code.

I am using firebase, FCM, and google-services and they were all doing this:
apply plugin: 'com.google.gms.google-services'

So I removed it from:

portal-build.gradle in 2 places
in:
platforms->android->cordova-plugin-firebase
platforms->android->cordova-support-google-services

^ to make sure google services was only applied once.

Also I made sure every *.gradle file in platform->android pointed to the same com.google.gms:google-services version. In my case 4.0.2 works.

Then as a unexpected bonus I had to change the project.properties file in platform->android

There I made sure
com.android.support:support-v4:27.1.0 was called, and I removed every other reference to com.android.support:support-v4 from it.

This works for me: