Check out example codes for "Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']". It will help you in understanding the concepts better.

Code Example 1

// in /platforms/android/cordova-support-google-services

// In this directory find the file {APP}-build.gradle

// Open and comment the next line

apply plugin: com.google.gms.googleservices.GoogleServicesPlugin

Learn ReactJs, React Native from akashmittal.com