Push Notifications with Firebase Cloud Messaging and Cordova build FCM error Cannot add task ':processDebugGoogleServices' as a task with that name already exists

I had a similar issue, and posted my findings and a solution which worked for me over here: