Android SDK Setup
Manual     Reference     Scripting   
Unity Manual > Getting Started with Android Development > Android SDK Setup

Android SDK Setup

There are some steps you must follow before you can build and run any code on your Android device. This is true regardless of whether you use Unity or write Android applications from scratch.

1. Download the Android SDK

Go to the Android Developer SDK webpage. Download and unpack the latest Android SDK.

2. Installing the Android SDK

Follow the instructions under Installing the SDK, feel free to skip the optional parts relating to Eclipse. In step 4 of Installing the SDK make sure to add at least one Android platform with API level equal to or higher than 9 (Platform 2.3 or greater), the Platform Tools, and the USB drivers if you're using Windows.

3. Get the device recognized by your system

This can be tricky, especially under Windows based systems where drivers tend to be a problem. Also, your device may come with additional information/specific drivers from the manufacturer.

Note: Don't forget to turn on "USB Debugging" on your device. You can do this from the home screen: press MENU, select Applications > Development, then enable USB debugging.

If you are unsure whether your device is propperly installed on your system, please read the trouble-shooting page for details.

4. Add the Android SDK path to Unity

The first time you build a project for Android (or if Unity later fails to locate the SDK) you will be asked to point out where you installed the Android SDK. Please point to the root-folder of the Android SDK. The location of the Android SDK can also be changed in the editor by accessing Edit then Preferences.

Page last updated: 2011-07-14