
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.
If you are running on Windows, install the USB device drivers:. You can install the corresponding Platform Tools and Build Tools at the same time.Įxample: sdkmanager “platform-tools” “platforms android–27” “build-tools 27.0.3” The general format of the command for package installation is sdkmanager. In that case, you must uninstall the SDK and install an earlier version. However, there might be cases where Google has released a new version of the SDK that causes errors when you build your Unity Project. Typically, you can install the latest available version. The larger the number, the newer the package. Platform SDKs take the following form in the list: platforms android-xx. Select a version of the Platform SDK to install. The installable packages include the Platform SDKs, Build Tools, Platform tools, and other tools. Use the sdkmanager command line tool to retrieve the list of packages that you can install. Navigate to the bin folder in the location where you unzipped the tools folder: Unzip the tools folder to a location on your hard drive. To install an Android platform SDK and the associated tools:ĭownload the Android Software command line tool. Después de la instalación, abra el Android SDK Manager y agregue al menos un Android SDK Platform, las Platform Tools, las Build Tools y los controladores USB si está usando Windows. Instale o desempaquete el SDK de Android. 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.