title: Android Studio : com.android.ide.common.process.ProcessException:
body: <p>I'm trying to use ArcGis with Android Studio.  I tried to follow these steps </p>
  
  <ul>
  <li><p><a href="https://developers.arcgis.com/android/guide/install-and-set-up.htm" rel="nofollow noreferrer">https://developers.arcgis.com/android/guide/install-and-set-up.htm</a></p></li>
  <li><p><a href="http://blogs.esri.com/esri/arcgis/2014/05/20/using-the-arcgis-android-sdk-with-android-studio-part-1/" rel="nofollow noreferrer">http://blogs.esri.com/esri/arcgis/2014/05/20/using-the-arcgis-android-sdk-with-android-studio-part-1/</a></p></li>
  </ul>
  
  <p>but I face this error :</p>
  
  <blockquote>
    <p>Error:Execution failed for task ':app:dexDebug'.
    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2</p>
  </blockquote>
  
  <p>My app structure </p>
  
  <p><img src="https://i.stack.imgur.com/JG3VE.png" alt="enter image description here"></p>
  
  <p>app : build.gradle</p>
  
  <pre><code>  // Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.1.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          // Add the following arcgis repository
          maven {
              url 'http://dl.bintray.com/esri/arcgis'
          }
      }
  }
  </code></pre>