I am following this link to integrate Google sign-in in my android app.https://developers.google.com/identity/sign-in/android/start-integrating As given in last step on the
same issue i have.
i tired all possible solutions that i found. but non were worked.
always got this error
Cannot add task ':processDebugGoogleServices' as a task with that name already exists
Now, i solved it.
1) first i checked my config.xml
2) and removed unnecessary plugin. (I used firebase fcm plugin for pushnotification, but there was two unnecessary plugin phonegap-plugin-push and cordova-plugin-customurlscheme. I removed both these plugins)
3) then removed platform.
4) then add platform
5) then build it.
6) now it build successfully.