title: Encountering two errors when building unity for android, firebase SDK
body: <p>I'm receiving both errors:</p>
  <p>Could not create task ':processDebugGoogleServices'.</p>
  <p>Cannot create a proxy class for abstract class 'GoogleServicesTask'.</p>
  <pre><code>// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
  
  buildscript {
      repositories {
          google()
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.4.0'
          classpath 'com.google.gms:google-services:4.3.4'
  **BUILD_SCRIPT_DEPS**}
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          flatDir {
              dirs 'libs'
          }
      }
  }
  
  // Android Resolver Repos Start
  ([rootProject] + (rootProject.subprojects as List)).each {
      ext {
          it.setProperty(&quot;android.useAndroidX&quot;, true)
          it.setProperty(&quot;android.enableJetifier&quot;, true)
      }
  }
  ([rootProject] + (rootProject.subprojects as List)).each { project -&gt;
      project.repositories {
          def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace(&quot;\\&quot;, &quot;/&quot;)
          maven {
              url &quot;https://maven.google.com&quot;
          }
          maven {
              url &quot;https://deltadna.bintray.com/android&quot; // Assets/DeltaDNA/Editor/Android/Dependencies.xml:8
          }
          maven {
              url (unityProjectPath + &quot;/Assets/GeneratedLocalRepo/Firebase/m2repository&quot;) // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22
          }
          mavenLocal()
          jcenter()
          mavenCentral()
      }
  }
  // Android Resolver Repos End
  apply plugin: 'com.android.application'
  apply plugin: 'com.google.gms.google-services'
  **APPLY_PLUGINS**
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
  // Android Resolver Dependencies Start
      implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
      implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
      implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
      implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
      implementation 'com.deltadna.android:deltadna-sdk-notifications:4.10.0' // Assets/DeltaDNA/Editor/Android/Dependencies.xml:8
      implementation ('com.facebook.android:facebook-applinks:[5,6)') {
          exclude group: 'com.google.zxing'
      }// Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:6
      implementation ('com.facebook.android:facebook-core:[5,6)') {
          exclude group: 'com.google.zxing' 
      }// Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:5
      implementation ('com.facebook.android:facebook-login:[5,6)') {
          exclude group: 'com.google.zxing'
      } // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:7
      implementation ('com.facebook.android:facebook-share:[5,6)') {
          exclude group: 'com.google.zxing'
      } // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:8
      implementation 'com.google.android.gms:play-services-base:17.4.0' // Assets/Firebase/Editor/AppDependencies.xml:17
      implementation 'com.google.firebase:firebase-analytics:17.6.0' // Assets/Firebase/Editor/AppDependencies.xml:15
      implementation 'com.google.firebase:firebase-analytics-unity:6.16.0' // Assets/Firebase/Editor/AnalyticsDependencies.xml:18
      implementation 'com.google.firebase:firebase-app-unity:6.16.0' // Assets/Firebase/Editor/AppDependencies.xml:22
      implementation 'com.google.firebase:firebase-common:19.3.1' // Assets/Firebase/Editor/AppDependencies.xml:13
      implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:4
  // Android Resolver Dependencies End
      // ** revenuecat **
      implementation ('com.revenuecat.purchases:purchases-hybrid-common:1.2.0') {
          exclude group: 'com.android.billingclient', module: 'billing'
      }
      implementation 'com.android.support:multidex:1.0.3'
  **DEPS**}
  
  // Android Resolver Exclusions Start
  android {
    packagingOptions {
        exclude ('/lib/armeabi/*' + '*')
        exclude ('/lib/mips/*' + '*')
        exclude ('/lib/mips64/*' + '*')
        exclude ('/lib/x86/*' + '*')
        exclude ('/lib/x86_64/*' + '*')
    }
  }
  // Android Resolver Exclusions End
  android {
      compileSdkVersion **APIVERSION**
      buildToolsVersion '**BUILDTOOLS**'
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      defaultConfig {
          minSdkVersion **MINSDKVERSION**
          targetSdkVersion **TARGETSDKVERSION**
          multiDexEnabled true
          applicationId '**APPLICATIONID**'
          ndk {
              abiFilters **ABIFILTERS**
          }
          versionCode **VERSIONCODE**
          versionName '**VERSIONNAME**'
      }
  
      lintOptions {
          abortOnError false
      }
  
      aaptOptions {
          noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
          ignoreAssetsPattern = &quot;!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~&quot;
      }**SIGN**
  
      buildTypes {
          debug {
              minifyEnabled **MINIFY_DEBUG**
              useProguard **PROGUARD_DEBUG**
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
              jniDebuggable true
          }
          release {
              minifyEnabled **MINIFY_RELEASE**
              useProguard **PROGUARD_RELEASE**
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
          }
      }**PACKAGING_OPTIONS****SPLITS**
  **BUILT_APK_LOCATION**
  **EXTERNAL_SOURCES**
      bundle {
          language {
              enableSplit = false
          }
          density {
              enableSplit = false
          }
          abi {
              enableSplit = true
          }
      }
  }**SPLITS_VERSION_CODE****REPOSITORIES****SOURCE_BUILD_SETUP**
  
  </code></pre>
  <p>I saw several threads that said i should remove <code>apply plugin: 'com.google.gms.google-services'</code>
  or to update <code>classpath 'com.android.tools.build:gradle:3.4.0'</code> to <code>classpath 'com.android.tools.build:gradle:4.0.0'</code> but that didn't do it for me and only caused more problems.</p>
  <p>Also running <code>./gradlew :dependencies</code> didn't show anything.</p>