Execution failed for task ': app: compileDebugAidl': aidl missing

I installed Android Studio on my computer. I created a new project, but I got the error below. What can I do?

Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 

My version of Android Studio is 1.1.0 .

This is my build.gradle file:

 buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } 

AND:

 apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "24.1.2" defaultConfig { applicationId "com.example.jo.cloning_a_login_screen" minSdkVersion 13 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.0.0' } 
+61
android android-studio android-gradle build.gradle aidl
Apr 21 '15 at 8:29
source share
14 answers

In my case, I downloaded version 22 of Android M and Android 5.1.1 using Android Studio 1.2.1.1, but when I try to make Hello World, the same error showed me

So, the solution for me was doing a right click in the application, as shown below, and select "Open module settings"

Image 1

then you have 2 options. I changed both with the latest version that I had.

Compile SDK version for Lollipop API 21

enter image description here

and Build Tools version up to 21.1.2

enter image description here

Finally, clean the project and build

UPDATED

To get Android Studio 1.3, follow these steps:

  • Open the Preferences window by choosing File> Preferences.
  • Choose Appearance & Behavior> System Settings> Updates.
  • In the Updates panel, select the Automatically check for updates for: Canary Chanel option .
  • In the Updates panel, select Check Now to check the latest version of Canary. Download and install the assembly when prompted.

Then you will have something similar to upgrade your Androud Studio to version 1.3, and with this you can test Android M

Android 1.3

Update: the real reason

This error occurs when the SDK, Build Tools, and Gradle Plugins versions do not match (in terms of compatibility). Solutions are checked if you use their latest versions. Gradle plugins are placed in the build.gradle of the project, and other versions are on the build.gradle module. For example, for SDK 23 you should use Build Tools 23.0.1 and Gradle plugins version 1.3.1.

+79
May 29 '15 at 3:25
source share

It was fixed two days ago, so you can use:

 buildToolsVersion '23.0.0 rc2' 

with the latest Android gradle plugin:

 classpath 'com.android.tools.build:gradle:1.3.0-beta2' 

Note: I had some strange problems with the gradle 2.4 distribution, but trying to create a project again fixed this for me.

EDIT

There is a newer version of build-tools 23, so you should probably use:

 buildToolsVersion '23.0.0 rc3' 

EDIT 2

And again, there is a newer version of the plugin and gradle built-in tools, so you can switch to using:

 classpath 'com.android.tools.build:gradle:1.3.0' 

and

 buildToolsVersion '23.0.0' 
+17
Jun 08 '15 at 8:40
source share

I had a similar error with a fresh install of Android Studio 1.2.1.1 trying to create a new empty application for API 22: Android 5.1 (Lollipop).

I fixed this by simply changing the Build Tools version from "23.0.0 rc1" to "22.0.1", and then rebuilt.

In Windows F4, the project structure opens, and the version of the build tools can be installed in the "Modules> Application" section: enter image description here

I think that all this is a change in the settings in the build.gradle file in the application, but I did not want to change it manually if it does something else.

+16
May 31 '15 at 8:46
source share

I tried uninstalling / installing and it did not work. I am running OSX 10.10.3 with Android Studio 1.2.1.1 on JDK 1.8.0_45-b14, and the solution I found to work is similar to the recommendation of Jorge Casariiego. Basically, you get a build error out of the box for the missing "aidl" module, so just changing the Build Tools Version version to not be version 23.0.0 rc1 will solve your problem. He seems to have a mistake.

UPDATE After commenting on a problem with Android on his tracker ( https://code.google.com/p/android/issues/detail?id=175080 ), a member of the Android Tools group commented that to use the Build Tools version 23.0.0 rc1 you need to use the Android Gradle Plugin 1.3.0-beta1 (Android Studio is configured to 1.2.3). He also noted (read comments on the problem) that the IDE had to give a notice that you need to do this for it to work. For me, I did not see a notice, and I requested clarification from this project participant. Nevertheless, his leadership solved the problem so that it could be read.

Solution . Open build.gradle for your project (not a module). Find the classpath com.android.tools.build:gradle:xxx line classpath com.android.tools.build:gradle:xxx in the dependencies section, where xxx is the version of the Gradle plugin and do the update. Save and rebuild your project. Here are the Android Gradle docs for Gradle version control: https://developer.android.com/tools/revisions/gradle-plugin.html

+8
May 29 '15 at 2:14
source share

I managed to build an assembly for working with Build Tools 23.0.0 rc1 if I also opened the build.gradle file at the project level and installed the version of the android build plugin for 1.3.0-beta1. In addition, I track channels and pre-builds and just updated a few seconds before, so maybe this helped.

 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0-beta1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } 
+6
May 29 '15 at 10:09
source share

A quick fix that worked for me:

Right-click on the project β†’ "Open module options" β†’ "Edit tools" to change: 22.0.1

enter image description here

+4
Jun 02 '15 at 14:28
source share

To create an application without aidl is missing errors with compileSdkVersion 23 and buildToolsVersion "23.0.1" , you must specify the latest versions of the Android Gradle plugin (and the Google Play Services Gradle plugin if you use it) in the main build.gradle file:

 buildscript { repositories { ... } dependencies { classpath 'com.android.tools.build:gradle:1.3.1' classpath 'com.google.gms:google-services:1.3.1' } } 
+4
Sep 11 '15 at 11:49
source share

Essentially the Matt Daley / Johnny Mohseni solution worked for me.

I encountered the same problem on a new installation of Android Studio V 1.2.1.1. I created a new project (empty action) and immediately realized this build error.

 Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 

As suggested, changing the gradle dependency from 1.2.3 to 1.3.0-beta1 fixed it.

 classpath 'com.android.tools.build:gradle:1.3.0-beta1' // <--- WORKS! //classpath 'com.android.tools.build:gradle:1.2.3' // <--- default - failed 

After saving the changes 1.3.0-beta1, I received a request to update the dependencies. After accepting the update request, the gradle build status bar at the bottom monitors the synchronized packages. When this is completed, the assembly starts automatically and completes successfully.

+3
Jun 04 '15 at 9:48
source share

I had the same error, I fixed it by going to build.gradle (Module: app) and changing this line:

  buildToolsVersion "23.0.0 rc1" 

to:

 buildToolsVersion "22.0.1" 

You will need to run the SDK manager and check if you have build tools 22.0.1. If not, you can use proper build tools, but avoid 23.0.0 rc1.

+3
Jun 14 '15 at 16:22
source share

The problem was actually in Android Studio 1.3 , updated from the channel channel. I upgraded my studio to 1.3 and got the same error, but returning to studio 1.2.1 , my project worked fine.

0
May 29 '15 at 9:27
source share

buildtools build in 23.0.0.rc2 is back

To be able to use it, you need to update the plugin to version 1.3.0-beta2 or higher , as shown below:

enter image description here

0
Jun 17 '15 at 10:18
source share

I am working with sdk 23.1.0 and gradle 1.3.1. I created a new project, did not edit anything, and received a helpl error. I went into the gradle project file and changed the tool to 22.0.1 instead of 23.1.0, and it worked:

  compileSdkVersion 23 buildToolsVersion "22.0.1" //"23.1.0" 
0
May 28 '16 at 8:20
source share

Check if you really installed the buildVersionTools you are using. In my case, I tried 25.0.1, while I only had 25.0.2.

To verify this, go to the SDK manager by clicking the icon:

enter image description here

Then click "Launch Offline SDK Manager" below:

enter image description here

Now check everything you need and install the packages.

enter image description here

Hope this helps!

0
Feb 22 '17 at 17:16
source share

Use the file browser and copy the IInAppBillingService.aidl file into it / app / src / main / aidl / com / android / vending / billing /

0
Jun 07 '17 at 16:48 on
source share



All Articles