#1 2016-01-05 14:03:12

edunt
Member
Registered: 2015-12-21
Posts: 258

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

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/lates … index.html

Last edited by edunt (2016-01-05 14:06:34)

Offline

#2 2016-01-05 20:44:45

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

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

Hello,

Thanks for posting edunt. I want to refer here what is probably the best tutorial around the web in order to get ready with Apache Cordova and the Android SDK in Windows:

https://evothings.com/doc/raw/build/cor … ndows.html

Certainly if someday I add a tutorial into App Builder they must be very, very similar to the above one.

Online

#3 2016-01-06 02:42:25

edunt
Member
Registered: 2015-12-21
Posts: 258

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

David wrote:

Hello,

Thanks for posting edunt. I want to refer here what is probably the best tutorial around the web in order to get ready with Apache Cordova and the Android SDK in Windows:

https://evothings.com/doc/raw/build/cor … ndows.html

Certainly if someday I add a tutorial into App Builder they must be very, very similar to the above one.

Hi David,

Nice guide but there will be issue with Android SDK they mentioned in their guide. ADT Bundle android SDK is needed, not the one they mentioned. Maybe you can give a try on the guide and give us your feedback.

Thanks.

Offline

#4 2016-01-06 02:54:16

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

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

Hello edunt,

Thanks for posting. In fact this is what the guide say:

For the Android SDK, you have the choice between installing the ADT bundle that incudes Eclipse (ADT = Android Developer Tools), or the Android SDK Tools, that does not include Eclipse. In the steps below we will use the Android SDK Tools download.

So we have the choice to use the Eclipse ADT or the Android SDK only. I personally do not use Eclipse, so I install only the Android SDK and everything works fine.

Online

#5 2016-01-06 11:18:24

edunt
Member
Registered: 2015-12-21
Posts: 258

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

Hi David,

Good to hear that everything works.

Thanks.

Offline

#6 2016-02-12 13:25:00

Samuel
Member
Registered: 2016-02-12
Posts: 2

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

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.

Offline

#7 2016-02-12 13:48:52

Samuel
Member
Registered: 2016-02-12
Posts: 2

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

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.

Offline

#8 2016-02-12 21:58:39

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

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

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.

Online

#9 2016-02-13 15:51:14

datadon
Member
Registered: 2015-04-23
Posts: 108

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

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. :-)

Last edited by datadon (2016-02-13 15:51:41)

Offline

#10 2016-02-13 22:37:51

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

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

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. smile

AND SORRY ALL FOR ALL THE INCONVENIENCES.

Online

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.