title: Cannot add task 'processDebugGoogleServices' as a task with that name already exists
body: <blockquote>
    <p><strong>What went wrong?</strong>
    org.gradle.api.internal.tasks.DefaultTaskContainer$DuplicateTaskException: 
     Cannot add task 'processDebugGoogleServices' as a task with that name 
     already exists.</p>
  </blockquote>
  
  <pre><code>I want to test firebase FCM plugin, but it seems to have a lot of errors, 
  after solved many of them, here what I'm trying to do: ionic cordova build 
  android, I have this error:
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SYTyq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/SYTyq.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>ionic info:</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/AAxmy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AAxmy.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>platforms\android\cordova-plugin-fcm-with-dependecy-updated:</p>
  </blockquote>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          jcenter()
          mavenLocal()
          google()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.+'
          classpath 'com.google.gms:google-services:3.1.+'
          classpath 'com.android.tools.build:gradle:3.0.1'
      }
  }
  repositories {
      mavenCentral()
      jcenter()
  }
  dependencies {
      compile 'com.google.firebase:firebase-core:10.+'
  }
  // apply plugin: 'com.google.gms.google-services'
  // class must be used instead of id(string) to be able to apply plugin 
  from non-root gradle file
  apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
  </code></pre>
  
  <blockquote>
    <p>platforms\android\cordova-support-google-services</p>
  </blockquote>
  
  <pre><code>buildscript {
          repositories {
              jcenter()
              mavenCentral()
              google()
          }
  
  dependencies {
      classpath 'com.android.tools.build:gradle:+'
      classpath 'com.google.gms:google-services:3.2.0'
      classpath 'com.android.tools.build:gradle:3.0.1'
  
  
         }
      }
  
      // apply plugin: 'com.google.gms.google-services'
      // class must be used instead of id(string) to be able to apply 
  plugin from non-root gradle file
  ext.postBuildExtras = {
      apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
  }
  </code></pre>