I have been trying many online tutorials for weeks now on how to build an android app for my web app using cordova and/or phonegap CLI and/or the cloud service, but I keep getting it wrong.
I lastly tried to use the cordova CLI as follows:
- I downloaded and installed java jdk
- I downloaded the Android SDk (verified the variables JAVA_HOME, ANDROID_HOME and PATH)
- I downloaded and installed nodeJs
- Installed cordova via: npm install -g cordova (which I verified the version to be 6.2)
- I created a new folder for the cordova project and entered the folder
- I Added the android platform thus: cordova platform add android When I ran: cordova build android, I had an error like that HERE.
I discovered gradle was the problem and I donloaded and used it locally as @Gandhi suggested, then I had a shorter response now (the portion in red ink of the picture in the above link). I have been researching in vain and I really think I am now stuck. I run on windows 10, an hp notebook, 64-bits, core-i3 cordova build android CLI error