Easily build Unity3d Android development environment

Source: Internet
Author: User
Tags android sdk manager

1. Download the Java-installed JDK:

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

(JDK, including JRE)

In the case of a 64-bit system, it is recommended to install 64-bit java.

2. Download the Android SDK:

Note that Android has two ways: one is Android studio and one is ADT. You can use whichever you prefer.

It is said that Google has gradually turned to Android Studio, I also recommend this to develop.

option 1: Use Android studio :

There are many mirror sources in China (now even Baidu Software), you can also visit the community of Android studio to download. When installed, "Android Studio" and "Android SDK" will be mounted separately, after the installation:

Choose: Use ADT :

Http://developer.android.com

There are 32-bit and 64-bit versions available in the download page (including IDE). Everyone can choose according to their own needs. I am downloading the 64-bit version here.

After the download is complete, it is a compressed package, unzip it.

Extracted after: "Eclipse folder", "SDK folder", "SDK Manager.exe"

3, update (management) SDK:

Packages that are installed by default should be published with bundles (less and not up-to-date), so you can download the required packages according to your development needs:

"Windows"--"Android SDK Manager" opens the SDK Manager (you can also click the icon on the menu bar)

When opened, you will find the following states: Not installed (not installed), installed (installed), updatable. In the previous check box, tick the package you want and install it.

Here, I want to develop support Android4.2.2 game, download is Android 4.2.2 (API 17), as shown in.

Note a:

The SDK package represents the meaning:

documentationfor Android SDK: Android SDK documentation, usually in the latest API.

SDK Platform: SDK Kit for Android

Samples for SDK: Examples of using the SDK, you will see the corresponding files in the \sdk\samples directory

ARM EABI v7a System image: This is a core image that provides support for NDK usage. is to create the files required by the emulator

Intel Atom x86 System Image: Supports x86 's Android emulator. Create the files required by the emulator

MIPS System Image : The core image of MIPS Systems (processors), creating the files required by the emulator

Google APIs: A set of APIs provided by Google Maps

Sources for Android SDK: SDK source code, in the \sdk\sources directory will see the corresponding folder, such as: ANDROID-17

-----------------

Note B:

Due to GFW reasons, it is possible that Download Interrupted:read timed out during the download process is the error of the super-times. There are many ways to solve this problem. Here are the recommended ways to do this:

In the "Android Studio Chinese Community" tool page, download:

http://tools.android-studio.org/

This is the SDK required for Android development, download and unzip, copy or move the entire extracted folder to the Your SDK path/platforms folder, then open the SDK Manager, open the Tools menu select options (option) menu item Open the Android SDK Manager Setting dialog box, click the Clear Cache button, and then restart Eclipse (or Android Studio) and SDK Manager.

4 to associate unity with the SDK

Start Unity, select "Edit"--"Preferences"--"External Tools", in the Popup dialog box, select "Android SDK location", "Browse." "Specify the location of the Android SDK so that unity is associated with the Android SDK.

Note that whether you use ADT or Android Studio, you only need to configure the appropriate SDK path.

5. Install Android device driver

Open Eclipse, and then open the Android SDK Manager to make sure thatGoogle USB Driver is installed . If not installed, check your own, install, or you will not find the Android device error.

6, connect the phone

Plug in the USB cable, turn on the phone's USB debug mode (Android version is different, open way slightly different). "Settings"-"Developer Options"-"USB debugging"

If it is a win7 system, then click on: "Start" and "devices and printers" to find the "Android" device. The normal condition (drive intact, can be connected), is this:

PS. If an exclamation mark appears on an "Android" device, then right-click "Properties" and "Update Driver". Specify the folder, for example mine is: D:\ptools\android_SDK\sdk\extras\google\usb_driver.

If there is a yellow exclamation mark, you can also use a more absolute way: With 360 mobile phone assistant, or QQ mobile phone assistant and other tools. These tools will automatically install the USB debug driver for Android.

Complete the construction of the environment

This is where Unity's Android environment is built! Next, we can develop, release the mobile phone program! Please see the next blog post.

Reference:

(1) "Unity3d Android mobile phone development environment Configuration"

Http://game.ceeger.com/Unity/Doc/2014/Unity3D_Android_SDK_Install.html

(2) "Unity3d Mobile game Development" Tsinghua University Press. The main reference of this paper.

(3) "Android Zero-start"

http://blog.csdn.net/dyllove98/article/details/9271533

(4) Unity Development Android Game (a) Build Unity Android development Environment

http://blog.csdn.net/chenggong2dm/article/details/20654075

Easily build Unity3d Android development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.