The path to the dependency’s installation folder.A checkbox that indicates whether to use the version that Unity provides or a custom 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. To an existing install, see Add modules.At install time, see Downloading and installing Editors and modules with the Unity Hub.You can install them either when you install a new Unity Editor version, or add them to an existing Unity Editor install. Unity distributes dependencies as modules which means you use the Unity Hub to install them. 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. The Android Software Development Kit (SDK).To support Android, a Unity project requires the following dependencies: Platform-tools to your PATH environment variable.To create a Unity application for Android, you first need to set up your Unity project to support Android. Tip: For easy access to the SDK tools from a command line, add the Matches the API Level of the Android platform that you plan to use. You are choosing a samples package to download, select the one whose API Level Samples packages are available - one for each Android platform version. The samples give you source code that you can use to learn aboutĪndroid, load as a project and run, or reuse in your own app. For more information, read Support Library. All of the activity templates available when creating Plus others not included in the framework at all) on devices runningĪ platform version as old as Android 1.6. Includes a static library that allows you to use some of the latest Your app running on them with the Android emulator. It'sĪ good practice to download system images for all versions of Android your app supports and test Your app, it's unlikely you have a device for every version of Android your app supports. Although you might have one or more Android-powered devices on which to test To support (we recommend Android 2.2 for your lowest version). To get started, download the latest Android version, plus the lowest version you plan Version in order to use new features when running on devices with the latest version of Android. You'll still be able to run your app on older versions, but you must build against the latest On the latest devices, we recommend that you use the latest platform version as your build target. In order to provide the best user experience SDK Platform Required.You must download at least one platform into yourĮnvironment so you're able to compile your application. You must install this package when you install the SDK for Your new SDK installation already has the latest version. Here's an outline of the packages required and those we recommend you use: SDK packages that are available, already installed, or for which an update is available. You can select which packages you want to download by toggling the checkboxes on the left, thenĬlick Install to install the selected packages.įigure 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |