0

I am novice to ionic, cordova and gradle. I am facing below issue when I am trying command ionic cordova build android --release

Android Studio project detected
ANDROID_HOME=C:\Users\Jindu\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
studio
(node:7964) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: 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
(node:7964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the
future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I have tried many solution provided like - one suggested to install gradle in sdk tools folder, set path of gradle in environment variables but all failed.

Can anyone please help?

Daniel
  • 10,641
  • 12
  • 47
  • 85
Mohit Aggarwal
  • 113
  • 3
  • 14

0 Answers0