How to install Unity Android SDK? (2021)

how to install android SDK for unity? In this lesson, I will explain the installation of the Unity Android SDK, which is necessary to develop games for Android in the UNITY 3D game engine. With Unity 2021, you can now automatically install it in Android SDK when installing the Android module. Along with the Unity SDK Manager, we may need to manually download the SDK for Google Play. (With recent updates)

how to install unity android sdk
how to install unity android sdk

First of all, for the Android SDK to be installed, you must have Java JDK (Development Kit) installed on your system. From Java’s official website Oracle, you can supply JDK easily.

You can install the Android SDK in two ways: using Android Studio or using the Unity Hub SDK Manager. Now that the method recommended by Google is to install the SDK with Android Studio, this may be the best option. If you have developed an advanced project and are getting an API error, it may be right to choose Android Studio. In addition, the normal Unity Hub SDK installation is quite simple, but it can create problems for minimal API support for Google Play in the future.

Install the Unity android SDK to Program Android Games with Ease

Even though Android is an open-source platform, there are many common mistakes made during installation and development that can lead to significant errors afterward. Even though Android has some of the best user interfaces available, installing a Unity Android SDK can make it even more frustrating. , many users are unaware of these common errors and the problems they cause. Fortunately, having learned them, these mistakes can be easily corrected. It is worth reading the different issues that you need to avoid so that you don’t make common mistakes with them yourself.

READ >   Unity Engine Dotween Usage And Details - 2021

First of all, if you are using a normal Unity, uninstall the Android SDK built into Unity. Unity Manager must already be installed. Help to use unity manager to speed up installation and license updates. To do this, download and run the Unity Manager application, it will display the current versions and select the latest stable version. Select the correct structure to install.

If you are not satisfied with the built-in administrator and want to use a third-party SDK, there are several ways to do it. The first is to download a zip from the Google Android installer and install it on your computer. If you don’t want to install the software, you can use the system files. But if you are comfortable using Windows, the zip method is best. After downloading the zip, launch the installer and follow the on-screen instructions.

How to Install Unity Android SDK?

To make the games or applications that you are developing with Unity 3D compatible with Google Play, you need to install the most up-to-date Android SDK (Software Development Kit). Although the processes are simple, the installation of Android Studio has become mandatory.

1. Unity Hub

The installation of the Unity Hub SDK, which is our first process, has been made very simple. With Unity Hub, you can install the Android SDK with just one click, depending on the corresponding Unity version.

How to install android SDK for Unity? Let’s start:

  • Download Unity Hub Before You Start.
  • Start the Unity Hub program.
  • In the pop-up tab, just click the “Installs” tab on the left side.
  • Locate the Unity version that you are using in the pop-up window.
  • Click the ellipsis Section at the top right of the Unity version you found.
  • Immediately after that, click” Add Modules“.
  • Click on the “Android Build Support” option to install the SDK and DONE!
  • You can also select the “iOS Build Support” option to install the iOS Sdk and start the download process.
READ >   Unity UI (interface) system detailed Guide (2021) - [FULL]
unity hub sdk installation
unity hub: android sdk installation

As we can see in the photo, there are dozens of options available, and you can complete SDK installations depending on the project you are going to develop with Unity. At the top, when you install the “Android & iOS Build Support” SDK downloads, the processes will be automatically defined and you will be able to finish the necessary installations.

unity hub android sdk ndk
Unity Android Build Support > Android SDK & NDK Tools

2. Android Studio

The Android Studio SDK installation may be the best option. As an example, the Unity Hub SDK installation has maximum API support of 29, while Android Studio has 30 API support. API support is a rule enforced by Google. To keep the user experience at the highest level, the latest API Support SDK is recommended to keep it up-to-date. For this, installing the SDK with Android Studio may be the right option. Also, if you have developed an Advanced project, you can fix vague errors in your project with Debugging for Android devices.

We can switch to Android Studio Installation and SDK installations:

1. Download Android Studio

Download Android Studio right here. Please note that for the installation of the Android Studio SDK, the normal Android Studio installation must be performed.

2. Follow the Path of Android Studio SDK Manager

Immediately after installing Android Studio, you need to create a sample project. After creating the sample project, follow the path Android Studio > Top Menu > Tools-Android-SDK Manager.

android studio sdk manager
android studio sdk platforms – android api 31

As you can see in the picture, the Android API 31 is not installed correctly. You can install the SDK with the most up-to-date and highest API value. We make the Android SDK 31 part tick, and after clicking the Save > OK button, the installation of the SDK with the latest version starts automatically.

READ >   Unity 3D Minimum System Requirements - (2021)

3. Adding the Android SDK Path to Unity

This part is really important. If you have downloaded the most up-to-date or optional SDK with the Android SDK, do not forget about the procedures here. Immediately run a sample project with Unity. Follow the path Edit > Preferences > External Tools.

As you can see in the photo below, we have removed the option in the SDK section. And finally, at the top, we add the ‘Android SDK Location‘ section in the Android SDK installation:

unity android sdk tools installed
android sdk tools installed with unity.

After you do this, after you close and open the Unity program, the SDK that you have installed will work successfully.

Unity Build Issue and SDK Update

android studio sdk tools
how to install unity android sdk? (2021) 7

When you encounter a Unity Grandle SDK Build error, you need to update the SDK. You need to use Android Studio, as we showed in the photo at the top. You will see the SDK Tools > Update option. Here we select the SDK that we want to update and use and click Save. After the download process is finished, we will be able to update and fix errors.

Fix the Android SDK Compatibility Issue

Before running your Android games on the Unity interface, make sure that the Android installed on your computer has at least Android version 4.4. Another way to make sure that you always have the latest official developed version, your games will work properly on your computer that has the Android Android SDK installed and other programs/software/hardware to configure it to use the same methods as the installation in use. However, if you want to install the Android SDK to run the custom development app directly from the desktop, you can download the desktop app from the Android site.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.