Cordova

Table of Contents

References

Cordova Website				http://cordova.io or http://cordova.apache.org
(they both point to the same site).
Cordova Documentation 		http://docs.cordova.io
Cordova Wiki 				http://wiki.cordova.io
Cordova Issue Tracker 		https://issues.apache.org/jira/browse/CB
Cordova Mailing Lists 		http://cordova.apache.org/#mailing-list
Cordova Twitter Account		http://twitter.com/apachecordova
PhoneGap Website 			http://www.phonegap.com
PhoneGap Wiki 				http://wiki.phonegap.com
PhoneGap Blog 				http://www.phonegap.com/blog
PhoneGap Twitter Account https://twitter.com/phonegap
To stay informed about what is going on with the project, you can sign up for the mailing lists at http://cordova.apache.org/#mailing-list

Installing Cordova

Android Platform Guide - deploying cordova android applications

Install Linux

Install node.js

node.js

For Android development, install Java Development Kit

sudo apt-get install openjdk-7-jdk
java -version

Set JAVA_HOME environment variable to list where java is installed (maybe put in .bashrc)
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

Install Eclipse

Install Android Developer Tools (ADT)

http://developer.android.com/sdk/installing/index.html?pkg=adt
  1. Unpack the ZIP file (named adt-bundle-.zip) and save it to an appropriate location, such as a "Development" directory in your home directory.
  2. Open the adt-bundle-/eclipse/ directory and launch Eclipse.

OR
taken from http://www.talkandroid.com/guides/developer/android-sdk-install-guide/
  1. Start Eclipse, then select Help > Software Updates > Find and Install….
  2. In the dialog that appears, select Search for new features to install and press Next.
  3. Press New Remote Site.
  4. In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL: https://dl-ssl.google.com/android/eclipse/.
  5. Press OK.
  6. You should now see the new site added to the search list (and checked).
  7. Press Finish.
  8. In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Eclipse Integration > Android Development Tools and press Next.
  9. Read the license agreement and then select Accept terms of the license agreement, if appropriate.
  10. Press Next.
  11. Press Finish.
  12. The ADT plugin is not signed; you can accept the installation anyway by pressing Install All.
  13. Restart Eclipse.
  14. After restart, update your Eclipse preferences to point to the SDK root directory ($SDK_ROOT):
    Select Window > Preferences… to open the Preferences panel. (Mac OS X: Eclipse > Preferences)
    Select Android from the left panel.
    For the SDK Location in the main panel, press Browse... and find the SDK root directory.
  15. Press Apply, then OK


Updating the ADT Plugin

To update the ADT plugin to the latest version, follow these steps:

  1. Select Help > Software Updates > Find and Install….
  2. Select Search for updates of the currently installed features and press Finish.
  3. If any update for ADT is available, select and install.

Alternatively:

  1. Select Help > Software Updates > Manage Configuration.
  2. Navigate down the tree and select Android Development Tools <version>
  3. Select Scan for Updates under Available Tasks.

Install Apache Ant?

CLI - http://ant.apache.org/

Install android SDK

http://www.talkandroid.com/guides/developer/android-sdk-install-guide/
  1. Edit the ~/.bash_profile or ~/.bashrc files looking for a line that sets the PATH variable.
  2. Edit the ~/.bash_profile or ~/.bashrc files looking for a line that sets the PATH variable.
  3. Add the full path location to your $SDK_ROOT/tools location for the PATH variable.
  4. If no PATH line exists you can add the line by typing the following: export PATH=${PATH}:<path to your $SDK_ROOT/tools>
  5. .bashrc and add notes

    export ANDROID_BIN=$HOME/Development/adt-bundle-linux-x86_64-20140624/sdk/tools export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 PATH=$PATH:~/bin:~:$HOME/local/bin:/home/jim/Development/adt-bundle-linux-x86_64-20140624/sdk/tools:/home/jim/Development/adt-bundle-linux-x86_64-20140624/eclipse:$HOME/Development/adt-bundle-linux-x86_64-20140624/sdk/platform-tools:$ANT_HOME/bin

    'eclipse' - runs eclipse

    'android' - runs android development environment

    'cordova build' - builds all environments installed

    ~/node-latest-install/hello

    ~/Development/adt-bundle-linux-x86_64-20140624/eclipse

    install errors

    Cordova 3.4.0 Install Error- Please Install Android Target 19
    aapt not found under the right path
    Android : error libGL.so: cannot open shared object file: No such file or directory
    apt-get install libgl1-mesa-dev