Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Fedora 14)
Author: Falko Timme
Follow me on Twitter
Last edited 01/26/2011
I do not issue any guarantee that this will work for you!
1 Preliminary Note
In fact, I'm using a slightly modified version of the Twitter client described in the link to build a Twitter app in this tutorial.
2 Installing Eclipse And Prerequisites For The Android SDK/PhoneGap
First open a terminal (Applications > System Tools > Terminal):
Eclipse and the prerequisites for the Android SDK and PhoneGap can be installed as follows:
yum install java-1.6.0-openjdk-devel java-1.6.0-openjdk eclipse eclipse-gef eclipse-gef-sdk ruby rubygems rubygem-nokogiri ruby-devel git ant libxml2 libxml2-devel libxslt-devel wget
Leave the root account:
3 Installing The Android SDK
Open Firefox and go to http://developer.android.com/sdk/index.html. There you will find links for the Android SDK for the different platforms (Windows, Mac OS X, Linux). Copy the link location of the download for Linux (i386) (don't worry, this download works on both i386 and x86_64 platforms!)...
... and download and uncompress it as follows:
tar xvfz android-sdk_r08-linux_86.tgz
This will give you the directory android-sdk-linux_86 in your home directory ($HOME). We must add the $HOME/android-sdk-linux_86/tools directory and the $HOME/android-sdk-linux_86/platform-tools directory to our PATH variable which we do as follows:
... and replace the PATH=$PATH:$HOME/bin line with PATH=$PATH:$HOME/bin:$HOME/android-sdk-linux_86/tools:$HOME/android-sdk-linux_86/platform-tools:
[...] PATH=$PATH:$HOME/bin:$HOME/android-sdk-linux_86/tools:$HOME/android-sdk-linux_86/platform-tools [...]
To make the change effective (so that we don't have to log out and back in), run:
Now start the Android SDK:
This is how the Android SDK looks:
Select Available packages in the left panel and then select Android Repository in the right panel to download SDK packages:
The packages that belong to the Android Repository group should now all be checked. Click on the Install Selected button:
A new window opens; mark the Accept radio box and click on Install...
... to start the download of the SDK packages:
If ADB (Android Debug Bridge) needs to be restarted, click on Yes:
Click on Close after the download has finished - this will close the download window: