Install PhoneGap 3.4.0 in Ubuntu 14.04

  • by
  • 3 Years ago
  • 10

PhoneGap is an Open-Source framework for building cross-platform native applications using standard web technologies such as HyperText Markup Language (HTML), Cascading Style Sheets (CSS), and JavaScript.

The latest release 3.4.0 comes with new features, one of which is far the biggest new feature is FireFox OS support. According to Adobe PhoneGap team, Firefox OS is referenced as firefoxos in phonegap commands. For more details click here

Install PhoneGap 3.4.0

sudo apt-get update

sudo apt-get install -y python-software-properties python g++ make

sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get update

sudo apt-get install nodejs

sudo npm install -g phonegap

phonegap

phonegap1

  • facebook
  • googleplus
  • twitter
  • linkedin
  • linkedin
  • Branislav Ballon

    Nice article 🙂

  • sysads

    Branislav Ballon
    thanks

  • Ankit

    I am getting error after executing ‘phonegap run android’. Please suggest something.
    ———————————————————————————————————–
    ankit@Ankit-Ubuntu:~/phonegap-practice/my-app$ phonegap run android

    [phonegap] detecting Android SDK environment…

    [phonegap] using the local environment

    [phonegap] adding the Android platform…

    /home/ankit/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:126

    throw e;

    ^

    Error: An error occurred while listing Android targets

    at /home/ankit/.cordova/lib/android/cordova/3.5.1/bin/lib/check_reqs.js:87:29

    at _rejected (/home/ankit/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:808:24)

    at /home/ankit/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:834:30

    at Promise.when (/home/ankit/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:1079:31)

    at Promise.promise.promiseDispatch (/home/ankit/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:752:41)

    at /home/ankit/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:574:44

    at flush (/home/ankit/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:108:17)

    at process._tickCallback (node.js:415:13)

    { [Error: /home/ankit/.cordova/lib/android/cordova/3.5.1/bin/create: Command failed with exit code 8] code: 8 }

    [error] /home/ankit/.cordova/lib/android/cordova/3.5.1/bin/create: Command failed with exit code 8

    —————————————————————————————————————-

    Please suggest some solution if you know any.

    • what version of Java are you running?

      • Ankit

        Do I need to use Java for Phonegap on Ubuntu?
        Do I also need to set path for Java and Android SDK on Ubuntu?

  • Luke Mallory

    I ran the commands without error but the command “phonegap –version” doesn’t return anything.

    • Its possible the build has changed, I will try it out and let you know when I get home

  • Jbal Tero

    Thanks.

  • Fahim al Islam

    Great article indeed!!! Worked like charm. Thanks a lot!!! 🙂