title: Android-studio ERROR: Cannot add task 'copyDebugIconFonts' as a task with that name already exists
body: <p>I have <strong>React Native</strong> project. When i build <strong>Android</strong> version i get an <strong>ERROR</strong>: Cannot add task 'copyDebugIconFonts' as a task with that name already exists. And in my terminal i have this error: 
  <strong>FAILURE</strong>: Build failed with an exception.</p>
  
  <ul>
  <li><p>Where:
  Script '/Users/evgeniykireev/openCalls/node_modules/react-native-vector-icons/fonts.gradle' line: 16</p></li>
  <li><p>What went wrong:
  Cannot add task 'copyDebugIconFonts' as a task with that name already exists.</p></li>
  </ul>
  
  <p><strong>My build.gradle:</strong></p>
  
  <pre><code>buildscript {
      ext {
          buildToolsVersion = "28.0.3"
          minSdkVersion = 16
          compileSdkVersion = 28
          targetSdkVersion = 28
          supportLibVersion = "28.0.0"
      }
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath("com.android.tools.build:gradle:3.4.1")
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          mavenLocal()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url("$rootDir/../node_modules/react-native/android")
          }
          maven {
              // Android JSC is installed from npm
              url("$rootDir/../node_modules/jsc-android/dist")
          }
  
          google()
          jcenter()
      }
  }
  
  </code></pre>
  
  <p><strong>My fonts.gradle:</strong></p>
  
  <pre><code>def config = project.hasProperty("vectoricons") ? project.vectoricons : [];
  
  def iconFontsDir = config.iconFontsDir ?: "../../node_modules/react-native-vector-icons/Fonts";
  def iconFontNames = config.iconFontNames ?: [ "*.ttf" ];
  
  gradle.projectsEvaluated {
      android.applicationVariants.all { def variant -&gt;
          def targetName = variant.name.capitalize()
          def targetPath = variant.dirName
  
          // Create task for copying fonts
          def currentFontTask = tasks.create(
                  name: "copy${targetName}IconFonts",
                  type: Copy) {
              into("${buildDir}/intermediates")
  
              iconFontNames.each { fontName -&gt;
  
                from(iconFontsDir) {
                  include(fontName)
                  into("assets/${targetPath}/fonts/")
                }
  
                // Workaround for Android Gradle Plugin 3.2+ new asset directory
                from(iconFontsDir) {
                  include(fontName)
                  into("merged_assets/${variant.name}/merge${targetName}Assets/out/fonts/")
                }
  
                // Workaround for Android Gradle Plugin 3.4+ new asset directory
                from(iconFontsDir) {
                  include(fontName)
                  into("merged_assets/${variant.name}/out/fonts/")
                }
              }
          }
  
          currentFontTask.dependsOn("merge${targetName}Resources")
          currentFontTask.dependsOn("merge${targetName}Assets")
  
          [
              "processArmeabi-v7a${targetName}Resources",
              "processX86${targetName}Resources",
              "processUniversal${targetName}Resources",
              "process${targetName}Resources"
          ].each { name -&gt;
              Task dependentTask = tasks.findByPath(name);
  
              if (dependentTask != null) {
                  dependentTask.dependsOn(currentFontTask)
              }
          }
      }
  }
  </code></pre>
  
  <p>Can you help me please)</p>