cordova执行cordova build android命令时build失败:
No usable Android build tools found. Highest 34.x installed version is 30.0.3; Recommended version is 34.0.0.
FAILURE: Build failed with an exception.
* Where:
Script 'E:\projectH5\CordovaDemo\platforms\android\CordovaLib\cordova.gradle' line: 79* What went wrong:
A problem occurred evaluating script.
> No usable Android build tools found. Highest 34.x installed version is 30.0.3; Recommended version is 34.0.0.* 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.BUILD FAILED in 4s
Command failed with exit code 1: E:\projectH5\CordovaDemo\platforms\android\tools\gradlew.bat cdvBuildDebug
解决方法:需要更新 Build Tools到34.0.0,可以在 SDK Manager 中安装 SDK Platform 34 以及 SDK Build Tools 34.0.0。使用Android studio进行更新。