This is the most basic Android SDK platform installation. A single platform (Android version) will be downloaded as well as all components to develop and emulate your device’s Android version. It is highly recommended that you already know the Android API level (version) of your phone or tablet.
A reliable way to find out the Android API level of your device is to download and install the Android System Information application. You can then check the System->BuildInfos menu option
- Create a desktop shortcut for the Android SDK manager. This is important because you will also need to set the application to run with Windows 7 administrator privileges.
- Right-click on the shortcut and click on the ‘Advanced’ button. This will display the dialog with the option to run the shortcut as Administrator. Click on it and select Ok
- Open the Android SDK manager.
You should see a progress bar at the bottom. This is a step where options for setting up all possible platforms are loaded. Even though you will notice a lot going on behind the scenes, you will be given the choice of which components to install once loaded.
- When this step is finished, click at the bottom right of the window where there is an icon of a document.
This is the log of what was fetched from the Google Android repositories.
Here is a full sample listing.
- Choose your platform. For example, for Android 2.2.1, used on the Huawei Vodafone Smart 858, the options to select are:
- Uncheck the latest platforms that are selected by default, this is because we only need to develop for 2.2 (or your particular version) for now
This is quite important as any unnecessary platforms will only be resource intensive in development
- Click the Android 2.2 platform in full (also codenamed Froyo). Also, try to memorize the numeric API level. For version 2.2, the API level is 8.
- Click on the ‘Install <number of packages> packages’ button
- (optional) After you check the API level of your device, there are additional vendor-specific components that you will likely not need to use. It is a good idea to uncheck them as they may have dependencies to third party websites and could cause incomplete installations if such websites are temporarily not available
- Just before installation, you will be presented with a list of components and their licenses. Choose the radio button to accept all licenses and then click on ‘Install’.
This part will be much slower because complete packages are being downloaded and installed. The progress bar will also give you an idea of the tasks that are in execution:
After this, all development components to target your Android version are ready.
The last step is to check the SDK folder setting
Set or verify your sdk folder setting in Eclipse
The SDK path setting in Eclipse needs to match the one in the SDK manager.
- Open your SDK manager, the SDK folder is located at the top of the main window
- Open Eclipse and then select: Window-> Preferences dialog ->Android option
One thing you will notice is that as soon as you enter the SDK path name, the message at the top of the preferences Window that that says:’Value must be an existing directory’ switches to simply ‘Android’
- Click OK to set the SDK location
- Exit Eclipse and then open Eclipse again.
This time if you go to Windows->Preferences and choose the Android settings, you will see additional details about your SDK, such as platform, installed targets, etc.
Next, you will be enabling your phone so that it will receive any applications that you create and the first application can be compiled and deployed to your device.
There are now three device set up guides available:
Subscribe to the RSS feed for updates about this blog.