
Unity displays a prompt and you can choose to either:
Android sdk and ndk install#
If you select a target API version newer than the latest installed version, the Unity Android SDK Updater can automatically download and install the new version.

This automation means that many common build errors are less likely to occur. The Android section of the External Tools panel contains entries for JDK, SDK, NDK, and Gradle An Android build system that automates several build processes. In the left navigation column, select External Tools.In Unity, select Edit > Preferences (macOS: Unity > Preferences).For more information, see Supported dependency versions. Warning: Unity only officially supports versions of the OpenJDK, SDK, or NDK that it supplies through the Hub. Download the custom version of the dependency.To make Unity use a custom version of a dependency: For example, if you have multiple versions of Unity with the same dependencies and you don’t want to duplicate the installation of the SDK, NDK, and JDK, you can specify a shared location.

However, there are situations where it’s useful to change the SDK, NDK, or JDK that Unity uses to build applications for Android. You should use the Unity Hub to install Android SDK & NDK tools and OpenJDK to ensure that you receive the correct versions and configurations. Unity installs Android SDK & NDK Tools and OpenJDK respectively in the SDK, NDK, and OpenJDK folders under /Unity/Hub/Editor//Editor/Data/PlaybackEngines/AndroidPlayer/. Unity Hub displaying the three dependency modules.
Android sdk and ndk for android#
By default, Unity uses OpenJDK.īefore you get started, check Unity’s Requirements and compatibility documentation for Android to make sure you’re aware of any limitations for developing a Unity application for Android.
Android sdk and ndk software#
The Android Software Development Kit (SDK).To support Android, a Unity project requires the following dependencies: To create a Unity application for Android, you first need to set up your Unity project to support Android.
