Reputation: 2897
I just updated Android studio to version 3.1 few days ago. I am getting this error in Build
tab AIDL is missing.
Caused by: java.lang.IllegalStateException: aidl is missing from '.../sdk/build-tools/27.0.3/aidl'
Here is the complete console error I am getting
Caused by: java.lang.IllegalStateException: aidl is missing from '/Users/user_name/Documents/sdk/build-tools/27.0.3/aidl'
at com.android.builder.core.AndroidBuilder.compileAllAidlFiles(AndroidBuilder.java:963)
at com.android.build.gradle.tasks.AidlCompile.compileAllFiles(AidlCompile.java:132)
at com.android.build.gradle.tasks.AidlCompile.doFullTaskAction(AidlCompile.java:188)
... 48 more
I have searched for this issue for specific Android Studio 3.1 but not found any solution yet.
Screen shot attached below
Upvotes: 0
Views: 3062
Reputation: 2897
I got the answer to my question. Actually I am new macbook user and shifted all my stuff from windows Laptop to this mac.
Silly me I also copied the sdk
folder from laptop and set as sdk path. Aidl is missing because my build-tools folder has aidl .exe
files which is surely not for macbook.
Thanks to pskink
for the hints in comments. Really appreciated!
EDIT Do not ever copy sdk from windows laptop to mac. Always use own mac's version sdk that comes along with android studio.
Cheers!
Upvotes: 2
Reputation: 19270
This happens when the versions of SDK, Build Tools and Gradle Plugins doesn't match.
This will be fixed if you use the latest versions of gradle plugins are placed in the project build.gradle, and the other versions are on the build.gradle of the module.
Upvotes: 0