【问题标题】:Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper在 Android Studio 或您的系统上找不到安装的 Gradle 版本以安装 gradle 包装器
【发布时间】:2019-10-16 12:03:57
【问题描述】:

我在安装最新版本后安装 android studio 3.5.1,同时尝试运行我的 CORDOVA android 应用程序,但出现以下错误:

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=D:\Software\sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio

请帮助解决这个问题我是 Cordova 应用程序开发的新手

【问题讨论】:

标签: android cordova android-gradle-plugin


【解决方案1】:

gradle -v 命令的输出是什么?要正确安装 Gradle,您需要使用 Gradle 可分发 ZIP 的位置创建/编辑 CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL 环境变量。

查看this guide to install Gradle了解更多详情。

【讨论】:

    猜你喜欢
    • 2021-08-16
    • 1970-01-01
    • 1970-01-01
    • 2021-06-20
    • 2019-05-14
    • 2018-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多