14

I was installing android studio 3.5.1 after installing the latest one while trying to run my CORDOVA android application I got below Error:

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

Kindly help out this problem I am new to Cordova app development

NPovlsen
  • 337
  • 1
  • 16
MurugananthamS
  • 2,395
  • 4
  • 20
  • 49

1 Answers1

3

What is the output of the gradle -v command? To properly install Gradle you need to create/edit the CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL environment variable with the location of a Gradle distributable ZIP.

Check out this guide to install Gradle for more details.

enter image description here

andreszs
  • 2,896
  • 3
  • 26
  • 34