How to Setup Eclipse for Android App Development

license

Introduction: How to Setup Eclipse for Android App Development

Developing Android applications can be a fun and exciting experience. To get started creating Android applications, you need a proper development environment. This will allow you to use all the tools needed to create an app and ensure you work efficiently. I will show you how to setup a working environment using the Android SDK, Eclipse IDE, and ADT Plugin.

This Instructable assumes you have knowledge of what Android is and have a basic understanding of programming, although programming is not required.

First I will explain how to get and setup the Android SDK provided by Google. Then I will address the use of the Eclipse IDE for development. Finally, I will focus on the ADT (Android Development Tool) Plugin that integrates the Android SDK with Eclipse.

Approximate time required: 20 mins.

Requirements: Computer with 300 mb of free space.

Step 1: Obtain the Android SDK

Step 2: Install the Android SDK

Step 3: Open Android SDK Manager

We'll select the most recent version along with the extra SDK tools so you can build applications for any Android version.

Step 4: Install Android Version and Extras for SDK

Step 5: Obtain Eclipse IDE

Eclipse is the tool we'll be using to develop in. It is the most popular Android development environment and has officially supported tools from Google.

Step 6: Run Eclipse for First Time

Eclipse does not require installation. It's a folder with all the necessary files and settings. You can run it directly from the Eclipse folder. It's recommended you put it in a safe place with other applications.

You should see a screen similar to the one attached if all went well.

Step 7: Add ADT Plugin Repository

The ADT (Android Development Tool) Plugin was made specifically for Eclipse to increase productivity and integration with your Android work environment. To use it, we first add the Eclipse plugin repository so it knows where to find it along with updates.

Step 8: Install ADT Plugin

Now that we have the plugin repo setup we need to install the plugin from it.

Step 9: Access ADT Plugin Preferences

You'll most likely have to restart Eclipse after you install the ADT Plugin so do that before you continue.

This is the ADT Preferences screen. It will allow you to change setting, remove the SDK and make editor preferences for your development.

Step 10: Setup ADT Plugin

Step 11: Access ADT Android Virtual Device Manager

To test your application we need to add an Android Virtual Device if you don't have a personal device.

In the application menu, select 'Window' and then 'Android Virtual Device Manager'

Here you can create new 'Devices'.

Step 12: Add ADT Virtual Device

Step 13: Conclusion

You have now setup an environment ready to develop Android applications. We installed the Android SDK, Eclipse, and the ADT Plugin.