title: Getting error while running Android Studio Default **Map Application**
body: <p>I am running android studio template code for Maps Application. But getting error. I am following this link to run just a simple maps application.</p>
  
  <blockquote>
    <blockquote>
      <p><a href="https://developers.google.com/maps/documentation/android-api/utility/setup" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/android-api/utility/setup</a></p>
    </blockquote>
  </blockquote>
  
  <p>Following is the error. </p>
  
  <blockquote>
    <blockquote>
      <p>Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
      com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536</p>
    </blockquote>
  </blockquote>
  
  <p>My question is why I am getting this error, Since I am following all the steps provided by the official Google link above.</p>
  
  <p>Here is my Gradle Code for app.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 24
      buildToolsVersion "24.0.0"
      defaultConfig {
          applicationId "app.com.example.android.mapsnew"
          minSdkVersion 16
          targetSdkVersion 24
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      // compile 'com.android.support:appcompat-v7:24.0.0'
      compile 'com.google.android.gms:play-services:9.4.0'
      compile 'com.google.android.gms:play-services-maps:9.4.0'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>Here is the image of this error.</p>
  
  <p><a href="https://i.stack.imgur.com/WzffP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WzffP.png" alt="enter image description here"></a></p>
  
  <p>Kind Regards, 
  Abr.</p>