Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin'] in ionic 4

After installing these phone gap plugins:

ionic cordova plugin add phonegap-plugin-push
npm install @ionic-native/push

I am getting this error:

Below is my ./platforms/android/project.properties file

target=android-28

android.library.reference.1=CordovaLib

android.library.reference.2=app

cordova.gradle.include.1=cordova-plugin-firebase/starter-build.gradle

cordova.system.library.1=com.google.android.gms:play-services-tagmanager:+

cordova.system.library.2=com.google.firebase:firebase-core:+

cordova.system.library.3=com.google.firebase:firebase-messaging:+

cordova.system.library.4=com.google.firebase:firebase-config:+

cordova.system.library.5=com.google.firebase:firebase-perf:+

cordova.system.library.6=com.android.support:support-annotations:27.+

cordova.gradle.include.2=cordova-support-google-services/starter-build.gradle

cordova.system.library.7=com.android.support:support-v13:27.+

cordova.gradle.include.3=phonegap-plugin-multidex/starter-multidex.gradle

cordova.system.library.8=me.leolin:ShortcutBadger:1.1.17@aar

cordova.system.library.9=com.google.firebase:firebase-messaging:11.6.2

I know this is already asked question I tried all these solutions ,nothing worked for me.