xtensivearts - One Leap Ahead
How to Update Your Development Environment to Android SDK 2.0

How to Update Your Development Environment to Android SDK 2.0

Posted 11/04/2009 - 1:46 am by Mathias Reisch

If you want to use the exciting new features that come with Android SDK 2.0 a.k.a. ‘Eclair’, you will have to update your development environment. Now if you are still on Android 1.5 you can simply follow this guide. Although that guide teaches you how to update to SDK version 1.6, the involved steps are actually the same for the new version. Now, if you are already running on Android SDK 1.6, you can use the new update method via the Android SDK and AVD Manager Tool. Sounds complicated? Well, don’t worry, it is actually really simple. Let me show you how to do it.

Step 1: Checking the Available Update Packages

The good thing is that you do not have to download or install anything on your own. You can simply use eclipse to handle the entire update process. So the first thing you want to do is – of course – start eclipse. After it has finished loading, go to Window -> Android SDK and AVD Manager. In the left panel choose Available Packages. In the right area mark the checkbox. Eclipse will now search the repository for all available updates. When it has finished, your window should look something like this.

install20_1

Step 2: Installing the Updates

Make sure you select the checkbox at the bottom to only show the updates, as this will make life a lot easier. Next make sure to select all available updates and click on ‘Install Selected’. On the next screen you will see a bunch of package names on the left. Some of them are labeled with a green checkmark while others may be labeled with a black question mark. The question mark tells us that we have to accept a license for the labeled packages. To make things easy simply select ‘Accept All’ in the lower right corner, double-check that now all packages are labeled with a green checkmark and then click on ‘Install Accepted’. Here is how it should look like.

install20_2

Now eclipse will download and install the updates. Depending on how fast your internet connection is, this may take a while. So just be patient.

install20_3

When everything has been downloaded and installed you may get the following dialog box.

install20_4

This is fine and you can safely select ‘Yes’. Also, if the Android Tools have been updated during the process you will very likely get this dialog box.

install20_5

Simply click on ‘Ok’ and close the Android SDK window. That is the first window you opened when you selected Window -> Android SDK and AVD Manager.

Step 3: Updating the ADT

Now that you updated the SDK packages, you should check if there is a new version of the Android Development Tools (ADT). This step is completely identical to step #3 in this guide. So if you are not familiar with the updating process for the ADT, please read that article first. In any case you should in fact see a new version available.

install20_6

So go ahead and update your installation. While I was updating the ADT I got this security warning at some point during the installation.

install20_7

Apparently this has something to do with an incorrect package signature or something alike. Nevertheless it should not worry you. Hit ‘Ok’ and continue the installation. When the installation has finished, you will get this old familiar message box.

install20_8

Click ‘Yes’ and wait for eclipse to restart.

Step 4: Check the Installation!

After that you should be done with the update. To check if the new SDK version has been installed properly, go to Window -> Preferences and select the ‘Android’ section in the left panel. This will display a list of all installed SDK targets. If you can see Android 2.0 among them, everything went fine and you are good to go.

install20_9

Step 5: Now Go Ahead And Create Something Awesome

In order to use the new Android SDK version for development, you have to create a new AVD by going to Window -> Android SDK and AVD Manager. Sounds familiar? Good! Just create a new AVD with the appropriate build target. From there on you can either create a new Android 2.0 project or compile your existing projects against Android 2.0.

Related posts:
  1. Android SDK 1.6 (a.k.a Donut): How to Update
  2. How to Solve Update Errors
  3. New Android SDK: The Donut Has Arrived!
  4. Android 2.0 SDK: Wanna Have an Eclair?
  5. Episode #2 – Create A New Project And Run It

Why Not Leave a Comment?

Name:*
E-Mail:*
Website:
Comment:*

Comments

Hesham

11/05/2009 – 9:34 am

Nice Work . Keep it Up !