Android Studio: Gradle build fails -- Execution failed for task ':compileDebugAidl' -


after changes source , building gradle in android studio (i/o preview) ai - 130.677228 build fails following error:

gradle:  failure: build failed exception. * went wrong: execution failed task ':compiledebugaidl'. > no signature of method: com.android.ide.common.internal.waitableexecutor.waitfortasks() applicable argument types: () values: []   possible solutions: waitforalltasks() * try: run --stacktrace option stack trace. run --info or --debug option more log output. not execute build using gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'. 

the second time running build build succeed.

using gradle wrapper version 1.6

this sucks because long build (non-incremental) after fails first time.

is there way not have failure?

edit include build.gradle

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')     } } 

link issue on google code: https://code.google.com/p/android/issues/detail?id=56158

i'm not sure how possible. looks have mismatch between gradle plugin , dependencies provides waitableexecutor class.

however mention gradle 1.5 , problem.

the plugin version 0.3 compatible gradle 1.3-1.4 new version release last week, 0.4 compatible gradle 1.6+

make sure use 0.4 , new gradle version.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -