Clean Blank Android 应用程序无法构建 - “无法找到构建工具修订版 23.0.0 rc1”

2023-11-25

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

打开 SDK 管理器并找到已安装且您要使用的 Android SDK 构建工具的版本。 然后转到 Gradle 脚本 > build.gradle(模块:app)。将 buildToolsVersion 设置为您的版本。

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

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Clean Blank Android 应用程序无法构建 - “无法找到构建工具修订版 23.0.0 rc1” 的相关文章