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'

2023-05-25,,

错误信息: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'的相关教程结束。

《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'.doc》

下载本文的Word格式文档,以方便收藏与打印。