Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing from '/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl'

错误信息:Error:Execution failed for task ‘:app:compileDebugAidl‘. > java.lang.IllegalStateException: aidl is missing from ‘/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl‘

出错分析:网上查了一些信息,给出的都是要把BuildTools Version和Compile Sdk Version一致。可是我的已经调一致了,还是报错。分析自己的情况,我的是从GitHub上checkout出来的代码,是在Windows上push的代码,而我是用mac电脑checkout的。Mac电脑刚配置环境,sdk是直接从Windows上拷贝的,错误原因可能就出现在这。

解决办法:删除build-tools/26.0.2,重新下载。应该是因为Windows下的build-tools和mac下的不一致。

Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing from '/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl'

原文地址:https://www.cnblogs.com/yidijimao/p/8228157.html

时间: 2024-08-24 03:05:59

Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing from '/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl'的相关文章

Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing(Android Studio编译错误)

今天下载了一个1.2.1.1版本的Android Studio,使用VPN更新好SDK之后就新建了一个hello world工程测试一下环境,然后就出现以下错误: Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 什么情况?全新安装的环境也有错误?Google发布这个工具时没有测试好吗? 没搞过这个工具,一阵搜索得到以下方案: 1.右键工程->Open Module Settings 2.将Bu

解决方案:Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing

也许有朋友最初在用Android Studio创建新工程的时候会碰到这个错误,其实这个问题是由于版本不兼容导致的,解决方法很简单,只需要把编译工具的版本改一下就可以了: 1.选左侧的工程根目录app,按F12打开Project Structure: 2.点击底部的app,把右侧Build Tool Version 从23.0.0 改为22.0.1即可~ 解决方案:Error:Execution failed for task ':app:compileDebugAidl'. > aidl is

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

使用android studio 时,编译成功但用build apk时却报错 环境: android studio 1.5, jdk1.7 错误:Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: ja

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug

这几天eclipse 项目迁移 android studio Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/Ac

Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException

异常Log: Error:Execution failed for task ‘:app:dexDebug’. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/……/java” finished with non-zero exit value 2 错误原因: 这个异常在Android Studio编译运

Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决方法

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.transform.api.TransformException: java.util.zip.ZipException: duplicate entry: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 类似问题我通过审查build.gradle引用的lib,把所有功能重复

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2解决:build.gradle中添加: defaultCon

“Execution failed for task ‘:app:compileDebugAidl': aidl is missing”解决办法

转载: “Execution failed for task ‘:app:compileDebugAidl': aidl is missing”解决办法 今天重建android studio编程环境,老编译不过,提示:Execution failed for task ‘:app:compileDebugAidl': aidl is missing,在网上查了不少资料,终于在一个国外网站找到了解决办法: In my case I downloaded version 22 of Android

Android Error:Execution failed for task ':app:compileDebugJavaWithJavac' 解决方案

今天使用 Android Studio 构建项目的时候出现了这个错误 compileDebugJavaWithJavac 通过搜索发现造成该问题的原因有很多需要结合具体的项目进行排查 通过 Android Studio 的 Terminal 输入 gradlew compileDebugJavaWithJavac 来进行原因查看 PS D:\gitlab\develop\ruixinAndroid_new> ./gradlew compileDebugJavaWithJavac Unzippin