Android的工作室:执行失败的任务:应用程序:compileDebugAidl失败应用程序、任务、工作室、Android

由网友(不拽,怎么赢世界)分享简介:我在安装Android的工作室1.2.1.1,与摇篮版本2.2.1和Android插件版本1.2.3。我试图创建一个简单的Hello World项目,它给我的构建失败:应用程序:compileDebugAidl失败。我缺少的东西或版本有一些不兼容的问题,因为这应该是一个简单的应用程序。感谢您的帮助。这是编译错误我得到:...

我在安装Android的工作室1.2.1.1,与摇篮版本2.2.1和Android插件版本1.2.3。我试图创建一个简单的Hello World项目,它给我的构建失败:应用程序:compileDebugAidl失败。我缺少的东西或版本有一些不兼容的问题,因为这应该是一个简单的应用程序。感谢您的帮助。

这是编译错误我得到:

 信息:摇篮任务[:应用程序:assembleDebug]
:应用程序:preBuild UP-TO-DATE
:应用程序:preDebugBuild UP-TO-DATE
:应用程序:checkDebugManifest
:应用程序:preReleaseBuild UP-TO-DATE
:应用程序:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE
:应用程序:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:应用程序:prepareDebugDependencies
:应用程序:compileDebugAidl失败
错误:执行失败的任务:应用程序:compileDebugAidl。
> AIDL缺失
信息:构建失败
 

解决方案

我有同样的问题。

右键单击应用程序 - >打开模块设置。设置此菜单中的生成工具版本为22.0.1版本。

设置此我能够成功构建项目后。

iOS7与Android4.3比较 互有借鉴各有优劣

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

解决方案

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.

阅读全文

相关推荐

最新文章