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


I installed Android Studio, 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:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:app:compileDebugAidl FAILED
Error:Execution failed for task ':app:compileDebugAidl'.
> aidl is missing
Information:BUILD FAILED

Best Solution

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.