title: Execution failed for task ':app:transformClassesWithDexForDebug' in react native
body: <p>I am new in <code>react native</code> and I use it in Ubuntu. I would like to run a project on my PC. I use yarn and android emulator. Here is my installed application versions:</p>
  
  <pre><code>yarn: 1.2.0
  
  nmp: 3.10.10
  </code></pre>
  
  <p>I got the following error while use:</p>
  
  <pre><code>$ react-native run-android
  </code></pre>
  
  <p>Here is the error:</p>
  
  <pre><code>  * What went wrong:
      Execution failed for task ':app:transformClassesWithDexForDebug'.
      &gt; com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
  </code></pre>
  
  <p>I have tested many solutions that exist in <code>stackoverflow</code> but, non of them did't work for me.  such as:</p>
  
  <p><a href="https://stackoverflow.com/questions/32212623/adding-google-services-execution-failed-for-task-appprocessdebugresources">Adding google services - Execution failed for task &#39;:app:processDebugResources&#39;</a></p>
  
  <p><a href="https://stackoverflow.com/questions/37497882/errorexecution-failed-for-task-apptransformclasseswithdexfordebug-in-androi">Error:Execution failed for task &#39;:app:transformClassesWithDexForDebug&#39; in android studio</a></p>
  
  <p>I also use <code>Google play service</code> and I have installed <code>Firebase</code> plugin. 
  Do you have idea that what should I do?</p>