How to install and be ready with Apache Cordova and the Android SDK


Ade Wale

Hi All,

Before developing for any of the platforms listed below, install cordova's command-line interface (CLI). (For details, see The Command-Line Interface.)

To develop Cordova applications, you must install SDKs for each mobile platform you are targeting. This installation is necessary regardless of whether you do the majority of your work in the SDK or use the CLI for your build cycle.

Each Platform Guide listed below tells you what you need to know to set up each platform's development environment: where to obtain the SDK, how to set up device emulators, how to connect devices for direct testing, and how to manage signing key requirements. Additional guides provide information on each platform's unique set of configuration options, instructions to add plugins, how to upgrade each platform, and platform-specific command-line tools that serve as a lower-level alternative to the cordova command-line utility.

Amazon Fire OS
Amazon Fire OS Platform Guide
Amazon Fire OS Configuration
Amazon Fire OS WebViews
Amazon Fire OS Plugins

Android
Android Platform Guide
Android Shell Tool Guide
Android Configuration
Android Plugins
Android WebViews
Upgrading Android

BlackBerry 10
BlackBerry 10 Platform Guide
BlackBerry 10 Shell Tool Guide
BlackBerry 10 Configuration
BlackBerry 10 Plugins
Upgrading BlackBerry 10

Firefox OS
Firefox OS Platform Guide

iOS
iOS Platform Guide
iOS Shell Tool Guide
iOS Configuration
iOS Plugins
iOS WebViews
Upgrading iOS

Ubuntu
Ubuntu Platform Guide

Windows Phone 8
Windows Phone 8 Platform Guide
Windows Phone 8 Plugins
Upgrading Windows Phone 8

Windows
Windows Platform Guide
Windows Plugins
Windows Packaging
Upgrading Windows 8

Tizen
Tizen Platform Guide

Source:
http://cordova.apache.org/docs/en/latest/

Platform Supports:
http://cordova.apache.org/docs/en/latest/guide/support/index.html


DecSoft

Hello,

Thanks for posting edunt. Please, take a look at this DecSoft's blog post.



Guest

Hi hello guys, not sure if is okay for me to post this question or comment here.
I just found AppBuilder the other day, but honestly I'm not familiar with cordova.
I did not know that cordova was needed in order to compile the final app from AppBuilder.
I tried to compile a simple plain app, but I get the following error:

'cordova' is not recognized as an internal or external command,
operable program or batch file.
'cordova' is not recognized as an internal or external command,
operable program or batch file.
'cordova' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

Then I downloaded "apache-ant-1.9.6-bin" and extract it, but then I don't know where
to place this folder so I can begin with the installation, could you guys help me a bit ?
All java dependencies are installed on my computer as I have android studio installed.
I need to install cordova...
Thanks in advance.


Guest

Hey Thanks David, right now I've followed your suggestion on the best guide online on installing cordova.


npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! syscall connect

npm ERR! Error: connect EACCES 00.000.00.000:000
npm ERR! at Object.exports._errnoException (util.js:856:11)
npm ERR! at exports._exceptionWithHostPort (util.js:879:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1053:14)
npm ERR! { [Error: connect EACCES 00.000.00.000:000]
npm ERR! code: 'EACCES',
npm ERR! errno: 'EACCES',
npm ERR! syscall: 'connect',
npm ERR! address: '00.000.00.000',
npm ERR! port: 443 }
npm ERR!
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Samuel\npm-debug.log

I'll let you know, thank you again.


DecSoft

Hello Samuel,

Thanks for your interest in my work at App Builder. Sorry for the delay: I expend all the day into the hospital and right now back to home. About your question, first of all, remember AB produces HTML5 applications which can be deployed "out of the box" in mobile and desktop browsers. So Apache Cordova is needed if we plain to build our applications for the Android platforms and others.

Certainly your first message error is very commom: "cordova" is not recognized as a command, which commonly means they are not properly installed. However, your second error is also new to me and I am not sure if can help. My recomendation is to start again. Certainly the best tutorial I found (linked above) put you in the way to prepare APK files (for Android) in literally seconds.

So please, follow the tutorial step by step, and "Google" the message errors, since probably you can also found help from the Cordova community. If I am not busy with my mom health problem... I can also connect with you using TeamViewer, for example, and try to install the appropiate software in your computer.

Please, take calm, and be patience: for sure you can get ready with Apache Cordova and I assert you that, once you are ready, use it is quite easy. Sorry if I can't offer you another answer at this time Samuel. But (I insist) try again and post here or feel free to open a new thread here in the forum: I will try to help you as quickly and best as possible.



Donald Walker

Samuel

Let me encourage you to keep going as David said. I went through similar issues and David was eventually able to get me configured correctly. I will say this that it is worth the effort to get it working.

I know David is dealing with his mother in the hospital right now so he is a bit limited in his efforts and deservedly so. So we will all be patient. You might want to consider downloading teamviewer (free) as that will allow David to have access to your pc.

Sorry to let that cat out of the bag David but it is a bit of an install for some of us and you seem to have it figured out. Delete my message if I have said too much. :-)


DecSoft

Hello to all,

Certainly I am back in home after pass all the day into the hospital. The good news is everything is OK. Slowly... but ok. I hope quickly my mom is in home and then I can get the bull horns again like I wanted.

Thanks for your kindly words Donald. :)

AND SORRY ALL FOR ALL THE INCONVENIENCES.


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.