4

I want to install Cordova on Ubuntu 14.04 LTS. I want to convert my web application to android app.

2 Answers 2

1

Cordova Installation:

Add the Ubuntu Cordova Personal Package Archive

sudo add-apt-repository ppa:cordova-ubuntu/ppa  
sudo apt-get update 

Install cordova-cli package (and its dependencies):

sudo apt-get install cordova-cli

Project Workflow:

Create a project

cordova create project1 REVERSEDNSNAME.project1 project1

Move into the Project Directory:

cd project1

Add the android platform:

cordova platform add android

Create an Andorid emulator

android create avd -n hello -t 1

Run the cordova app on the emulator :

cordova emulate android

Reference here for android

For reference here for Ubuntu

3
  • Thanks for the info! I want to add platform for android .. (not ubuntu)!
    – userAbhi
    Sep 10, 2015 at 8:56
  • I think we should use "$ cordova platform add android" instead of ..ubuntu!
    – userAbhi
    Sep 10, 2015 at 8:58
  • As you're a reputation 1 user: If this answer helped you, don't forget to click the grey at the left of this text, which means [Yes, this answer is valid]
    – Ravan
    Sep 10, 2015 at 9:10
0

To install Cordova on Ubuntu, run :

sudo apt-add-repository ppa:cordova-ubuntu/ppa 
sudo apt-get update
sudo apt-get install cordova-cli

You can test your environment by creating a sample application :

cordova create myapp com.ubuntu.developer.myid.myapp "My App"
cd myapp
cordova platform add ubuntu

And finally build your application by running :

cordova build --device

Refer to Ubuntu Developer Page on Cordova and the Cordova documentation for more infomations.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .