title: Google iosched: com.android.dex.DexIndexOverflowException: method ID not in
body: <p>3 weeks back, I had Google iosched source downloaded and imported into my android studio. I could install &amp; run the app in my emulator as well as my devices connected to my machine. However, last week, when I tried to run the same Android Studio project, I have started getting "FAILURE: Build failed with an exception. - com.android.dex.DexIndexOverflowException".</p>
  
  <p>Android SDK Tools - 23.0.5<br>
  Android SDK Platform-tools - 21<br>
  Android SDK Build-tools - 21.1.1<br>
  Android 5.0 (API 21) - SDK Platform Rev 1<br>
  ARM EABI v7s System Image - Rev 1<br></p>
  
  <p>I tried to make changes as recommended in <a href="http://developer.android.com/tools/building/multidex.html" rel="nofollow">Configuring Your App for Multidex with Gradle</a>
  but no luck. </p>
  
  <p><strong>android/build.gradle:</strong></p>
  
  <pre><code>android {
      compileSdkVersion 14
      buildToolsVersion "21.1.0"
  
      defaultConfig {
          ...
          minSdkVersion 14
          targetSdkVersion 21
          ...
  
          // Enabling multidex support.
          multiDexEnabled true
      }
      ...
  }
  
  dependencies {
    ...
    compile 'com.android.support:multidex:1.0.0'&lt;br&gt;
  }
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>android:name="android.support.multidex.MultiDexApplication"&gt;
  </code></pre>
  
  <p>But I started getting the below exception.</p>
  
  <p>A problem occurred evaluating project ':android'.</p>
  
  <blockquote>
    <p>Could not find method multiDexEnabled() for arguments [true] ...</p>
  </blockquote>
  
  <p>I am not clear how can an app project that was running well couple weeks before can get into this kind of problem? What could have changed and where am I going wrong? Someone pls help me.</p>
  
  <p>Note: In the same machine &amp; Android Studio, I have one of our own apps which continues to run without any problem. it's target Sdk Version was 19. I could change it to 21 and run it on devices/emulator running from android ICS to Android L.</p>