title: Build failing after upgrade cordova-android 10
body: <p>When I upgraded <code>cordova-android@9.0.0</code> to <code>cordova-android@10.1.1</code> I've got a build problem when I run <code>cordova build android --release --buildconfig=build.json</code></p>
  <p>Problems:</p>
  <pre><code>* What went wrong:
  Some problems were found with the configuration of task ':app:processReleaseGoogleServices' (type 'GoogleServicesTask').
    - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.
      
      Reason: Annotations on fields are only used if there's a corresponding getter for the field.
      
      Possible solutions:
        1. Add a getter for field 'intermediateDir'.
        2. Remove the annotations on 'intermediateDir'.
      
      Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'packageNameXOR1' without corresponding getter has been annotated with @Input.
      
      Reason: Annotations on fields are only used if there's a corresponding getter for the field.
      
      Possible solutions:
        1. Add a getter for field 'packageNameXOR1'.
        2. Remove the annotations on 'packageNameXOR1'.
      
      Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'packageNameXOR2' without corresponding getter has been annotated with @Input.
      
      Reason: Annotations on fields are only used if there's a corresponding getter for the field.
      
      Possible solutions:
        1. Add a getter for field 'packageNameXOR2'.
        2. Remove the annotations on 'packageNameXOR2'.
      
      Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'quickstartFile' without corresponding getter has been annotated with @InputFile, @Optional.
      
      Reason: Annotations on fields are only used if there's a corresponding getter for the field.
      
      Possible solutions:
        1. Add a getter for field 'quickstartFile'.
        2. Remove the annotations on 'quickstartFile'.
      
      Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'searchedLocation' without corresponding getter has been annotated with @Input.
      
      Reason: Annotations on fields are only used if there's a corresponding getter for the field.
      
      Possible solutions:
        1. Add a getter for field 'searchedLocation'.
        2. Remove the annotations on 'searchedLocation'.
      
      Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
  </code></pre>
  <p>I've already tried:</p>
  <ul>
  <li>Updated some dependencies outdated</li>
  <li>Remove <code>cordova-android-play-services-gradle-release</code> <code>cordova-android-support-gradle-release</code> <code>cordova-support-google-services</code></li>
  <li>Add in <code>config.xml</code> <br> <code>&lt;preference name=&quot;GradlePluginGoogleServicesEnabled&quot; value=&quot;true&quot; /&gt;</code> and <br><code>&lt;preference name=&quot;GradlePluginGoogleServicesVersion&quot; value=&quot;4.3.8&quot; /&gt;</code> <br> but when I did that, I've got another error:</li>
  </ul>
  <pre><code>* What went wrong:
  A problem occurred evaluating project ':app'.
  &gt; Failed to apply plugin 'com.google.gms.google-services'.
     &gt; Cannot add extension with name 'googleServices', as there is an extension already registered with that name.
  </code></pre>
  <p>Ionic CLI: 5.4.16<br>
  Ionic Framework: ionic-angular 3.9.8<br>
  @ionic/app-scripts: 3.2.4<br>
  <br>
  Cordova CLI: 10.0.0<br>
  Cordova Platorms: android 10.1.1<br>
  <br>
  NodeJS: 12.19.0<br>
  Android SDK Tools: 26.1.1<br></p>