When installing the Android platform SDK and other tools, you can typically install the latest available version. If you encounter errors, Unity recommends using the command line method. Note: Android Studio provides some ease of use benefits, but it is not fully tested for compatibility with Unity installs. The Android developer portal provides detailed installation instructions. Install Android studio from the Android developer portal. This installs the SDK to a directory named platforms in the same directory you unzipped the tools folder to.Ĭ: \platforms 1b.
After installing, open the Android SDK Manager and add at least one Android SDK Platform, the Platform Tools, the Build Tools, and the USB drivers if you’re using Windows. Install the Android SDK using the command line tools
Using the command line tools is a smaller download and does not install additional software, but it can be more challenging to use. Android Studio provides an easy to use GUI based tool but installs additional software on your computer. You can install the Android SDK using command line tools or through Android Studio. By default, Unity installs a Java Development Kit based on OpenJDK. Whether you’re building an Android application in Unity or programming it from scratch, you must set up the Android Software Development Kit (SDK) before you can build and run any code on your Android device.