title: Android Studio: Gradle build fails -- Execution failed for task ':compileDebugAidl'
body: <p>After changes to source and building with gradle in Android Studio (I/O preview) AI - 130.677228 the build fails with the following error:</p>
  
  <pre><code>Gradle: 
  FAILURE: Build failed with an exception.
  * What went wrong:
  Execution failed for task ':compileDebugAidl'.
  &gt; No signature of method: com.android.ide.common.internal.WaitableExecutor.waitForTasks() is applicable for argument types: () values: []
    Possible solutions: waitForAllTasks()
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
  </code></pre>
  
  <p>The second time running a build the build will succeed.</p>
  
  <p>Using a gradle wrapper with version 1.6</p>
  
  <p>This really sucks because it does a long build (non-incremental) after it fails the first time.</p>
  
  <p>Is there a way to not have this failure?</p>
  
  <p>EDIT to include build.gradle</p>
  
  <pre><code>buildscript {
  
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.4'
      }
  }
  apply plugin: 'android'
  
  task wrapper(type: Wrapper) {
      gradleVersion = '1.6'
  }
  
  dependencies {
  
      compile fileTree(dir: 'libs', include: '*.jar')
  }
  
  android {
      compileSdkVersion "Google Inc.:Google APIs:17"
      buildToolsVersion "17"
  
      defaultConfig {
          minSdkVersion 11
          targetSdkVersion 17
      }
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
  
          instrumentTest.setRoot('tests')
      }
  }
  </code></pre>
  
  <p>Link to issue on Google Code: <a href="https://code.google.com/p/android/issues/detail?id=56158">https://code.google.com/p/android/issues/detail?id=56158</a></p>