干净的空白Android应用程序编译失败 - “未能找到生成工具版本23.0.0 RC1” [英] Clean Blank Android App fails to build - 'failed to find Build Tools revision 23.0.0 rc1'

查看:264
本文介绍了干净的空白Android应用程序编译失败 - “未能找到生成工具版本23.0.0 RC1”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新到Android,试图建立一个干净的空白应用程序Android项目。

我得到下面的错误,因为我已经使用SDK管理器安装的版本24,它是混乱不知道为什么它寻找versoin 23.没有给我任何形式的行号看,虽然,有什么建​​议?谢谢你。

 按需配置是一个孵化功能。
:应用程序: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缺失*尝试:
与--stacktrace选项获取堆栈跟踪运行。与--info或--debug选项来运行,以获得更多的日志输出。构建失败总时间:2.243秒
执行任务:[:应用:assembleDebug]按需配置是一个孵化功能。故障:建立失败,一个例外。* 什么地方出了错:
一个问题发生配置工程:应用程序。
>未能找到生成工具版本23.0.0 RC1*尝试:
与--stacktrace选项获取堆栈跟踪运行。与--info或--debug选项来运行,以获得更多的日志输出。构建失败总时间:1.136秒


解决方案

打开SDK管理器,找到的是安装,并且要使用Android SDK构建工具的版本。
然后去摇篮脚本>的build.gradle(模块:应用程序)。在buildToolsVersion设为您的版本。

编辑:
还有一个更简单的解决方案。右键单击项目>打开模块设置。选择Complie SDK版本和构建工具要使用的版本。

New to Android, Tried to build a clean 'Blank App' android project.

I get the below error, which is confusing because I have version 24 installed using the SDK manager not sure why its looking for versoin 23. It doesn't give me any kind of line number to look at though, any suggestions? Thank you.

Configuration on demand is an incubating feature.
: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

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugAidl'.
> aidl is missing

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.243 secs
Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> failed to find Build Tools revision 23.0.0 rc1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.136 secs

解决方案

Open the SDK Manager and find the version of the Android SDK Build-tools which is installed and that you want to use. Then go to Gradle Scripts > build.gradle (Module: app). Set the buildToolsVersion to your version.

Edit: There is an easier solution. Right click on the project > Open Module Settings. Choose the Complie Sdk Version and Build Tools Version you want to use.

这篇关于干净的空白Android应用程序编译失败 - “未能找到生成工具版本23.0.0 RC1”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆