This article will show you how to use Unity3d to publish Android games, where I use the Unity3d version of 4.6.3F1
Download Java SDK
The Android SDK is needed to publish Android games using Unity3d, and Android is Java-based, so the first thing we need to download is the Java SDK, the address is: http://www.oracle.com/ Technetwork/java/javase/downloads/index.html
I am using the operating system for 64-bit Windows 7, so my download
Download the Android SDK
Then we go to download the Android SDK at the address: http://developer.android.com/sdk/index.html
We only need the SDK, so my download
Installing the Java SDK
Next, we install the Java SDK, install the Java SDK There is no need to pay special attention to, after setting the path, the installation can:
Installing the Android SDK
Then we start installing the Android SDK, and it will detect if we have the Java SDK installed at the beginning of the installation:
Similarly, after setting the path, start the installation:
Next, we launch the SDK MANAGER,SDK Manager to manage all the packages, and we can update and install the packages in the SDK manager.
Since Google basically and domestic say goodbye, so we directly started the SDK Manager is unable to connect to the server to obtain the package information:
So we're going to set it up, and in the menu bar, choose Tools, Options ..., and do it in the open window (Thanks neusoft):
After closing the window we can get the information of the package:
Select the package you need to install, in addition to the default selected package, I also installed Android 4.0 (API 14):
Then start quietly waiting for all the packages to be installed:
Compiling a publication using Unity3d
Finally we can use Unity3d to compile the release, first we want to set up the directory of the Android SDK, in the menu bar select Edit--Preferences ..., in the open window, select External Tools, Then set the directory where the Android SDK is located at the location of the Android SDK:
Then open the project to be published, in the menu bar choose File--Build Settings ..., in the open window select Android, here we need to Settings in the player ... The bundle Identifier is set in, otherwise it will cause the publication to fail, the specific settings are arbitrary, do not use the default is good:
OK, finally we click the Build button to start compiling the publication:
Install test-published projects on your phone
After compiling the release, we put the apk file on the phone to install the test, I use the phone as OnePlus, the system is YunOS:
Unity3d-Release Android games