Ionic Gradle error on Android build


#1

Hi All,

I am new to ionic. I was creating an android build. Previously, when building, I got an error regarding Gradle that

"ANDROID_HOME=C:\Users\username\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_131
Error: 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"

I have removed that issue after installing Gradle and running Gradle Wrapper.
But again, I am getting this error. Today, I have just updated cli-plugin-ionic-angular. Following is my Ionic Info:

global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : android 6.2.3
Ionic Framework                 : ionic-angular 3.3.0

System:

Node       : v7.10.0
OS         : Windows 8.1
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.3

Kindly help me, as I am stucked with this problem deeply.
Thanks in Advance.


#2

What does ionic cordova requirements output?
What exactly is the current error you are getting?
What exact command are you executing to get the error?