Follow the instructions below to set up an Android development environment for use with World Wind Android. See the Android SDK Installation Guide for details not covered by these instructions.
Install the Android SDK
- Install JDK 6 or later.
- Install the Android SDK Starter Package.
- On Mac OS X and Linux, download and extract the .zip or .tgz file to a folder on your hard drive.
- On Windows, run the standalone installer.
- The following steps refer to the extracted or installed folder as android-sdk.
- Add the folders android-sdk/platform-tools and android-sdk/tools to your PATH environment variable.
- Install Android SDK Platform Android 3.1
- On Mac OS X and Linux: open a terminal, then run the following command:
android
- On Windows: Open the Start Menu, select Android SDK Tools, then select SDK Manager.
- Select Available Packages, expand Android Repository, then check the following packages: Android SDK Platform-tools, SDK Platform Android 3.1 API 12, Samples for SDK API 12.
- Click Install Selected.
Prepare Your Android Device
Follow the instructions on Setting up a Device for Deployment.
Prepare Your IDE
IntelliJ IDEA
Enable the Android Support plugin in the Plugins page of the Settings dialog box, then follow the instructions for Developing Android applications in IntelliJ IDEA.
Eclipse
Follow the instructions for Managing Projects from Eclipse with ADT.
Troubleshooting
Problem: Running your Android App results in the log message: Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES].
This message indicates that you are attempting to install an application that already exists, but with a different keystore. Uninstalling the existing application resolves this issue. If you’re unable to uninstall the application, see the stackoverflow.com question How to deal with INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES without uninstallation.
Problem: Running the Android SDK installer for Windows results in the error “Java SE development Kit (JDK) not found”, when a JDK is installed.
This is a bug in the installer. Click Back then click Next.
Learning About the Android Platform
- Familiarize yourself with the Android Developer’s Site.
- Read “What is Android” and “Application Fundamentals” in the Android Developer’s Guide.
- Create a bookmark to the Android API Docs.