2007年12月5日星期三
2007年12月4日星期二
Installing Google Android SDK in Ubuntu
Today we will try to go through "Install Android SDK on Ubuntu 7.10" quest. Hope this will be helpful to some of you. let's get started.
- Go to http://code.google.com/android/download.html and download the linux version of the SDK.
- Unzip the file to your home folder. It will create a new folder named android_sdk_linux_m3-rc22a ( can be different version number at a later date)
- in terminal run:
gedit ~/.bashrc
This will open an editor, please add to the end of the file:
# set PATH so it includes Android tools path
export ANDROID_SDK_ROOT="$HOME/android_sdk_linux_m3-rc22a"
if [ -d $ANDROID_SDK_ROOT/tools ] ; then
PATH="${PATH}":"$ANDROID_SDK_ROOT/tools/"
fi
Don't forget to save changes :-) - open terminal and run:
sudo apt-get install eclipse
This will install Eclipse. - Follow instruction from here to install Eclips Plugin.
- Install Java, in terminal run:
sudo apt-get install sun-java5-jdk - Update your setup to use Sun Java as default, in terminal run:
sudo update-java-alternatives -s java-1.5.0-sun - Remove all the gcj packages running in terminal:
sudo apt-get remove java-gcj-*
订阅:
博文 (Atom)