Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: execution failed for task : app:compileDebugAidl FAILED

I installed Android Studio 1.2.1.1, with Gradle version 2.2.1, and Android plugin version 1.2.3. I tried to create a simple hello world project, and it give me a build failure of :app:compileDebugAidl FAILED. Am i missing something or have some incompatible issue with version, as this should be a simple application. Thanks for any help.

This is the compilation errors I am getting:

Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl FAILED
Error:Execution failed for task ':app:compileDebugAidl'.
> aidl is missing
Information:BUILD FAILED
like image 279
Tedha Avatar asked May 28 '15 23:05

Tedha


3 Answers

I had the same problem.

right click on app -> Open module settings. Set in this menu the 'Build Tools Version' to version 22.0.1.

After setting this I was able to build the project successfully.

like image 99
Stef Avatar answered Nov 20 '22 05:11

Stef


I met the same problem and resolved by changing the Preferences -> Build,Execution,Deployment -> Build Tools -> Gradle -> Project-level settings from 'Use local gradle distribution' to 'Use default gradle wrapper (recommended)'.

Hope it helps.

like image 34
Chris Avatar answered Nov 20 '22 05:11

Chris


goto File->settings->build->gradle and select Use default gradle wrapper (recommended)

like image 3
ASP Avatar answered Nov 20 '22 05:11

ASP