admin管理员组文章数量:1332873
I'm new to this, been using cordova for convert web app do mobile app
How do I fix this problem, I've installed already installed the build tool 34.0.0. and the latest 36.0.0-rc1 and tried using different ver. of gradle
This is my system variables This is the Path
C:\App\OS>cordova build android
Checking Java JDK and Android SDK versions
ANDROID_HOME=C:\Program Files\Android\Android Studio\bin (recommended setting)
ANDROID_SDK_ROOT=C:\Users\Clark\AppData\Local\Android\Sdk (DEPRECATED)
Using Android SDK: C:\Program Files\Android\Android Studio\bin
BUILD SUCCESSFUL in 1s
1 actionable task: 1 up-to-date
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
* Where:
Script 'C:\App\OS\platforms\android\CordovaLib\cordova.gradle' line: 73
* What went wrong:
A problem occurred evaluating script.
> No installed build tools found. Please install the Android build tools version 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 .
BUILD FAILED in 1s
Command failed with exit code 1: C:\App\OS if (highestBuildToolsVersion.isLowerThan(minBuildToolsVersionString)) {
throw new RuntimeException("""
No usable Android build tools found. Highest ${minBuildToolsVersion.getMajor()}.x installed version is
${highestBuildToolsVersion.getOriginalString()}; Recommended version
is ${minBuildToolsVersionString}.
""".replaceAll(/\s+/, ' ').trim())
}\platforms\android\tools\gradlew.bat cdvBuildDebug
This is the line 73 in cordova.gradle
if (highestBuildToolsVersion.isLowerThan(minBuildToolsVersionString)) {
throw new RuntimeException("""
No usable Android build tools found. Highest ${minBuildToolsVersion.getMajor()}.x installed version is
${highestBuildToolsVersion.getOriginalString()}; Recommended version
is ${minBuildToolsVersionString}.
""".replaceAll(/\s+/, ' ').trim())
}
本文标签: phonegapWhen I try to build the app on CMD using Cordova(cordova build android)Stack Overflow
版权声明:本文标题:phonegap - When I try to build the app on CMD using Cordova(cordova build android) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742305009a2449739.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论