清洁空白Android应用程序无法构建 - "未能找到构建工具修订版23.0.0 rc1"

NNN*_*ous 8 android build-tools android-sdk-tools

Android新手,尝试构建一个干净的"空白应用"Android项目.

我得到以下错误,这是令人困惑的,因为我使用SDK管理器安装了第24版,不知道为什么它寻找第23版.它没有给我任何类型的行号,但任何建议?谢谢.

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
Run Code Online (Sandbox Code Playgroud)

Oli*_*anz 30

打开SDK Manager,找到已安装且要使用的Android SDK Build-tools的版本.然后转到Gradle Scripts> build.gradle(Module:app).将buildToolsVersion设置为您的版本.

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