Cannot create a proxy class for abstract class 'GoogleServicesTask'. with 'com.google.gms:google-services:4.3.4'

I got this issue right after Google release

com.google.gms:google-services:4.3.4

It is working again for me just by reducing the version to 4.3.3.

com.google.gms:google-services:4.3.3


Better update these hopelessly outdated build tools:

classpath "com.android.tools.build:gradle:3.4.2"

to the current version (matching the Android Studio version):

classpath "com.android.tools.build:gradle:4.0.1"

I was having same issue when I updated one of our old project. what worked for me is I downgraded these two dependencies to

classpath 'com.google.gms:google-services:4.3.3'

classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.1'