在Android Studio中或在您的系统上找不到Gradle的已安装版本以安装Gradle包装器


10

我在尝试运行我的CORDOVA android应用程序时安装了最新的Android Studio 3.5.1之后安装了Android Studio 3.5.1,但出现以下错误:

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应用程序开发的新手


Answers:


2

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

查看本指南以安装Gradle了解更多详细信息。

在此处输入图片说明

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.