Setting up the required Android SDK Tools - shaunrd0/spinningcube GitHub Wiki
Setting up the Android SDK Tools on your local Unity Installation
Preparing to build the project as an .apk
The first thing we need to install is the Java Development Kit (known as the JDK).
-
Go to the Java site to download the most recent JDK. It’s labelled as "Java Platform (JDK)". Choose the one with the highest version number.
-
Simply run the installer and follow instructions in the wizard to install it. Next, we need to install the Android SDK Tools.
-
Go to the Android Developer site.
-
Download the Android SDK Tools (also referred to on the site as "the command line tools"), rather than the full download of Android Studio.
-
Unzip the downloaded file. The resulting directory is the directory that contains the Android SDK Tools.
-
Put the directory in a memorable, accessible location - you’ll need to tell Unity where this is directory later.
-
Open the directory that contains the Android SDK Tools, and navigate to tools.
-
Double click the file called android to run it.
-
A popup will appear, showing a list of packages that can be installed. By default, the core packages for building and the package for the latest version of the Android OS are selected.
- If the device you’re building to runs the latest version of Android, you don’t need to select anything else. If the device you’re building to runs an earlier version of Android, scroll down the list of packages and select the version you need.
-
Click Install [x] packages to start the installation process. You will be prompted to accept the licenses for these packages.
-
For each package that you wish to install, select the license on the left, select Accept License, and then click Install to proceed.
- A window will appear that shows the progress of the installation. The installation will take some time to complete, so it’s a good time to take a break.
-
You may see a popup telling advising you to restart the manager window - if this happens, click OK.
-
When the installation process has completed, close the window.
That's it, you're now ready to build working .apk applications for Android devices within the unity editor! This is only the installation of SDK tools required by unity for the actual build process.***
These instructions were pulled directly from a tutorial provided by Unity, see the link below for more details. I left out some project configuration steps since these will be done for you if you clone this repository. If you wanted to create a new Android project, there would be more steps involved in setting up your project.