How To Install The Android SDK & Eclipse on Ubuntu
I have been experimenting with mobile app development for a while now, and I recently wanted to install the Android SDK (r11) and Eclipse 3.7 (Indigo) on my laptop, which runs Ubuntu 11.04 (Natty Narwhal). Eclipse provides a great IDE for writing your code, and the Android SDK provides all of the device files and Android-specific goodies you need to implement your applications on Android devices. I followed the guides on the Android and Eclipse website, and the process was pretty straightforward. This tutorial assumes you have a Java Virtual Machine already set up on your system. I use Sun’s JVM but others should work just as well.
- Download the Android SDK.
- Download the SDK plugins you want.
- Download and install Eclipse.
- Move Eclipse and Android directories to a final installation folder [optional]
- Install the Android Development Tools for Eclipse
- Point Eclipse to the location of your Android SDK.
- Start writing Android applications!
1. DOWNLOAD THE ANDROID SDK.
FIRST, HEAD OVER TO THE ANDROID SDK DOWNLOAD PAGE AND DOWNLOAD THE LATEST SDK VERSION THAT FITS YOUR ENVIRONMENT (X86 OR X64). AT THE TIME OF THIS WRITING, THE MOST RECENT STABLE SDK IS R11.
$ tar xzvf android-sdk_r11-linux_x86.tgz
$ cd android-sdk-linux_x86/tools android-sdk-linux_x86/tools$ ./android
2. DOWNLOAD THE SDK PLUGINS YOU WANT.
At this point, you should select the SDK elements and APIs you would like to have available for developing. If you want to develop cross-platform Android apps, you should probably download everything. If you only want to target a specific device, download the APIs and Android versions that apply to that device. There are a number of options to choose from. Make your selection from the available packages and click “Install Selected.” In my case, I downloaded a bunch of different platform tools and APIs, so the download took a while. While it’s downloading, let’s install Eclipse.
3. DOWNLOAD AND INSTALL ECLIPSE.
If you like to stick with the Ubuntu repositories, you can install Eclipse using apt-get or Synaptic. However, at the time of this writing, Eclipse Indigo was just released and it isn’t available in any of the repositories so I downloaded it from the Eclipse website (over bittorrent, for speed and to help their bandwidth). Either way, the folks at Android recommend the Eclipse Classic installation.
$ sudo apt-get install eclipse
$ tar xzvf eclipse-SDK-3.7-linux-gtk.tar.gz
$ cd eclipse $ ~/eclipse$ ./eclipse
4. MOVE ECLIPSE AND ANDROID DIRECTORIES TO A FINAL INSTALLATION FOLDER [OPTIONAL]
I verified that Eclipse was working, and noticed that my Android SDK targets had finished downloading, so I closed both applications and moved the Android and Eclipse folders to my /opt/ directory, because that’s how I like to organize my system. You can skip this step or place the files in a different location if you like.
$ sudo mv eclipse/ /opt/ $ sudo mv android-sdk-linux_x86/ /opt/ $ sudo chown -R USER:USER /opt/android-sdk-linux_x86/
5. INSTALL THE ANDROID DEVELOPMENT TOOLS FOR ECLIPSE
Now that Eclipse and the Android SDK are installed, we need to add the Android Development Tools (ADT) to our Eclipse installation. Up to date instructions can be found on the ADT Website. Start Eclipse and go to Help > Install New Software. Then click the ‘Add’ button at the top of the window. An “Add Repository” window will pop up. Pick a name, (I chose ‘Google Android’) enter the following URL in the ‘Location’ box and click OK:
6. POINT ECLIPSE TO THE LOCATION OF YOUR ANDROID SDK.
Once the ADT is installed, you need to enter the location of your Android SDK into Eclipse. Click the Window menu and select ‘Preferences.’ Then click ‘Android’ and enter the location of your Android SDK folder. In my case, it was ‘/opt/android-sdk-linux_x86.’
7. START WRITING ANDROID APPLICATIONS!
To create your first Android project, go to File > New Project and select ‘Android.’ Click Android Project, and enter a Project Name, an Application Name and a Package Name and select the Android version you would like to target and click ‘Next,’ then ‘Finish. I picked “Test1, Test1 and com.android.test1″ respectively, and I targeted Android 2.2.
(Bu yazıyı aldığım kaynak, İzmir Ekonomi Üniversitesi son sınıf bitirme projesi için oluşturduğum bloğa ait)
22 Eyl 2012 tarihinde Android içinde yayınlandı ve how to install Android SDK and Eclipse on Ubuntu, install Android SDK, install Eclipse, Ubuntu olarak etiketlendi. Kalıcı bağlantıyı yer imlerinize ekleyin. 2 Yorum.