When I tried to generate a release build for Android, and used the following cli command:
$ cordova build --release android
The build was aborted with the following error:
..path\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s /c ""path\platforms\android\gradlew" cdvBuildRelease -b "path\platforms\android\build.gradle" -Dorg.gradle.daemon=true" ERROR building one of the platforms: Error: cmd: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: cmd: Command failed with exit code 1 at ChildProcess.whenDone (C:\Users\ARUP\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
What is going wrong ??
Please help. Let me know how to fix this issue