如何修复在 Windows cmd 上运行 cordova build android 时出现的错误

问题描述 投票:0回答:1

当我运行 cordova build android 命令时,我不断收到这些错误,并且我不知道如何修复它,我尝试谷歌搜索但没有任何帮助。

我已经在cordova目录中:我运行

cordova emulate or build android
我收到以下错误:

FAILURE: Build failed with an exception.

* Where:

Script 'C:\Users\ededd\Desktop\bookExchangeApp\platforms\android\CordovaLib\cordova.gradle' line: 75

* What went wrong:

A problem occurred evaluating script.

> No usable Android build tools found. Highest 33.x installed version is 33.0.1; Recommended version is 33.0.2.

* Try:

> Run with --stacktrace option to get the stack trace.

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 9s

Command failed with exit code 1: C:\Users\ededd\Desktop\bookExchangeApp\platforms\android\gradlew -b C:\Users\ededd\Desktop\bookExchangeApp\platforms\android\build.gradle cdvBuildDebug

C:\Users\ededd\Desktop\bookExchangeApp\www>

android cordova jquery-mobile
1个回答
0
投票

只需将构建工具从 33.0.1 更新到 33.0.2。在 Android Studio / SDK 管理器中

© www.soinside.com 2019 - 2024. All rights reserved.