Setting up Eclipse for Android development on Windows, Linux and Mac
Well with the impending arrival of my 7″ Rockchip 2808 Dual Core Android Tablet device from Amazon. I am getting excited about developing applications and more specifically games for Android. So I need to setup my favorite IDE eclipse width the latest Android SDK’s and Android Eclipse Plugin (ADT) for android development. Below are step by step instructions to install the Android SDK’s on Windows, Linux and Mac. Once done there is a generic Eclipse walkthrough to setting up the IDE for Android Development.
Windows
- Make sure your Eclipse install is up-to-date (HowTo install/update Eclipse)
- First we need to install android SDK (Download windows Android SDK – General dowload page)
- Extract the zip to a suitable location such as C:\Android
- Run the executable called SDK Setup
- The Android SDK and AVD Manager will open where you can install multiple versions of the Android SDK
- Now to Setup Android Eclipse Plugin (ADT)
Linux
- Make sure your Eclipse install is up-to-date (HowTo install/update Eclipse)
- First we need to install Android SDK (Download Linux Android SDK – General dowload page)
- Extract the archive to a suitable location where you usually store SDK’s
- Run the script called Android in the tool directory
- Command Line
cd @YourSDKfolderLocation@/tool/
sudo sh android
- Command Line
- The Android SDK and AVD Manager will open where you can install multiple versions of android
- Now to Setup Android Eclipse Plugin (ADT)
- Make sure your Eclipse install is up-to-date (HowTo install/update Eclipse)
- First we need to install Android SDK (Download Mac Android SDK – General dowload page)
- Extract the archive to a suitable location where you usually store SDK’s
- Run the script called Android in the tool directory
- Now to Setup Android Eclipse Plugin (ADT)
Setting up Android Eclipse Plugin (ADT)
- Open up ecplise and go to
help->Install New Software->
- Now enter
https://dl-ssl.google.com/android/eclipse/
as seen in screenshot above and hit add. - You should now see a check box for “Developer Tools” as seen in screenshot above, tick it and click next.
- Follow the install wisard clicking next and accepting the unsigned packages, you will then be asked to restart eclipse
- Now to tell eclipse where the android SDK is stored
Window-> Preferences->Android
- In the Android SDK location place the path to the place you stored the SDK earlier
- Hit the apply button and its done you know have ADT install in the Eclipse IDE
- You will need see a few new icons in your IDE. The first one will allow you to create a new project, just follow the wizard.
Setting up an Android virtual device
- To debug your Android applications you will need an virtual Android device
- If you try and run your project a message will pop up telling you there are no compatible devices and would you like to add one
- Now the Android SDK and AVD manager will pop up, click new
- Setup your preference for the device and thats it.
About the Author
Ciarán McCann
Flax Project Founder - Ciarán McCann is an extremely passionate and motivated programmer who has been programming for about 4 years now. Currently attending Carlow I.T studying computer games development. He has experience in many different programming languages, markup languages and general technologies. His role in the Flax Project is as a blogger/Web Designer and Flax Engine programmer. Please excuse any bad grammar/spelling, I am a bit on the Dyslexic side. Follow me on Twitter for info on what I am working on.
Related Posts
-
Catch up with the Flax Project – Busy times!
Hey everyone, so it’s been nearly 5 weeks since we last posted. It’s been a crazy 5 weeks and it’s not over just yet. Unfortunately we […]
WP7 Game “Astro Bacon”
Ever wanted to fling asteroids at space pigs? Well, thanks to Astro Bacon, now you can! Hi all, I’m back and I’ve got a […]
Hey,
Thanks for all this great information.
Mark