Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap: Getting Started with Android? -- on Linux

On Phonegap.com, the Getting Started with Android? page have the sections:

  • 3A. Setup your PATH environment variable on Mac OS
  • 3B. Setup your PATH environment variable on Windows

but no section for Linux. Why ? what should I do if on Linux (Ubuntu) ?

like image 870
Hugolpz Avatar asked Feb 17 '13 17:02

Hugolpz


1 Answers

I myself use phonegap on linux, for that i have installed android SDK via Eclipse (Eclipse JUNO for linux) and for ease of access, I use applaud plugin for eclipse.

Steps for installation:

  1. Download eclipse from "Software center" or from eclipse's website.

  2. For Android SDK use instructions given on Android developers' site (http://developer.android.com/sdk/installing/installing-adt.html )

  3. Applaud plugin(Optional): http://www.mobiledevelopersolutions.com/home/start This site contains a step-by-step procedure of installing Android SDK and applaud plugin.

PATH ENVIRONMENT VARIABLE

On Linux, the PATH environment variable can be defined in your ~/.bashrc ~/.bash_profile file. If you have either of those files, use a text editor such as gedit, vi, or Emacs to open the file and look for a line that exports the PATH variable. If you find such a line, edit it to add the full path of the tools directory to the path. If there is no such line, you can add a line like this:

export PATH=${PATH}:your_sdk_dir/tools where you put the full path in place of

your_sdk_dir.

For further help, please refer to

http://fyi.oreilly.com/2009/02/setting-up-your-android-develo.html

like image 182
Shobhit Sharma Avatar answered Nov 07 '22 12:11

Shobhit Sharma