This is my first-time learning Android. I usually use Ubuntu for development which I use Ubuntu Oneiric 11.10 while write this articles. I have Python and PHP based before, so, migrate into Android will be wild and fun! So, to start develop Android in Ubuntu, I use Eclipse. Before you start read more, please make sure you have fast internet connection because we will download big files here.
This is steps How to build Android environment in Ubuntu using Eclipse and Android SDK.
1. Download and Install Android SDK
Android SDK contains API, Package Installation and Emulator. By Android wrapper in Eclipse, we can run and modify in Android SDK from Eclipse menu.
In case you need :
Installing Java in Ubuntu Oneiric 11.10
1 2 3 4 | sudo apt-get purge openjdk* sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin |
After make sure we have Java installed, then we can go to next step.
Go to http://developer.android.com/sdk/index.html and Download Linux version. Extract it and execute “/tools/android”, eg:
1 2 3 4 | wget -c http://dl.google.com/android/android-sdk_r16-linux.tgz tar -xvvf android-sdk_r16-linux.tgz && cd android-sdk-linux/tools chmod a+x android ./android |
Or you can use “sh android” for execute android. Then you will get Android SDK GUI and you can start by downloading Tools and Android API. I use Android API 2.3.3 as my primary emulation and work environment. Right now, Android 2.3.3 common globally used.
2. Download and install Eclipse
Go to http://www.eclipse.org/downloads/ and start download Eclipse Classic. Extract and run Eclipse. Then you should go to “Help -> Install New Software” and add Android ADT plugin by adding :
1 | https://dl-ssl.google.com/android/eclipse/ |
And install all packages needed.