当我运行 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>
只需将构建工具从 33.0.1 更新到 33.0.2。在 Android Studio / SDK 管理器中