phonegap - When I try to build the app on CMD using Cordova(cordova build android) - Stack Overflow

I'm new to this, been using cordova for convert web app do mobile appHow do I fix this problem, I

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())
    }

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742305010a4418762.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信