2018 Unity combined with Android SDK download installation and configuration tutorial

Source: Internet
Author: User
Tags android sdk manager

Original: 2018 Unity combined with Android SDK download installation and configuration tutorial

First statement: Unity version 2017.1f3

???? recently try to use NetEase in unity to do AR Development, publish project files need to publish to the Android platform, encountered some problems, read some information on the internet, stepped on some pits, now summed up, I hope that the same developers can avoid the encounter.

first step, installation JDK;

Step two, install Eclipse;

step three, download and install ANDROIDSDK;

The fourth step, in released to the Android platform in Unity.


Installing the JDK

Official website: http://www. Oracle . com/technetwork/ Java /javase/downloads/index.html

You can do this by following these steps:

( 1 Click on any one of the arrows in the image.

?

(2) Accept

?

(3) find the JDK version suitable for your computer system , click to download

?

(4) You choose the path installed, Note: Can not be saved in the Chinese path .

(5) settings for the variable environment: My Computer /Computer--Properties--Advanced system settings--environment variables.

①, create a new system environment variable named Java_home, the variable value is the JDK installation path

?

②, find Path in system variable ,%java_home%\bin;%java_home%\jre\bin add to variable value after

Note: when added at the very end of a variable, need to Plus semicolons ;

③, detection is configured successfully. Open a command-line window and enter Javac-version. See Oraclewhen the installation is successful? The JDK version number, as shown in:

?

?

Install Eclipse

Official website: http://www.eclipse.org/downloads/

1. Download Eclipse, select Eclipseide for? Java EE ? Developers, choose a 32-bit or 64-bit installation package According to your system,

2. unzip the downloaded installation package to the location you want, and get the result:

?

3, double-click eclipse/eclipse.exe. Choose your own workspace storage location, the installation is successful, if no check the steps a JDK is installed and configured correctly.

?

?

?

Download and install Android? SDK

official website (can FQ Select): http://developer.android.com/sdk/index.html

no FQ options:http://www.androiddevtools.cn/

or 360 security defender -360 software Butler-programming development-search.

(The second method is the example below to download)

1. Download Android SDK Tools

find it first . SDK Tools, download the latest version. Select Zip and unzip to the target path location

?

?

2. Double-click "SDK Manager" to launch SDK Manager

①, tools, tick the icon option to download.

?

②, the API of any choice, consider the principle of backward compatibility, you can download the latest API.

Full selection of ③ and extras

?

Note: The following prompt appears when you cannot download

?

Download the installation using the Android SDK online update mirror server:

1. Beijing University mirror server address:

ipv4:?ubuntu.buct.edu.cn/? Port: 80

ipv4:?ubuntu.buct.cn/? Port: 80

ipv6:?ubuntu.buct6.edu.cn/? Port: 80

2, Dalian Neusoft Institute of Information Mirror server address:

Mirrors.neusoft.edu.cn? Port: 80

3. Open source Mirror station of Zhengzhou University:

Mirrors.zzu.edu.cn? Port: 80

How to use:

start ? Android SDK Manager, open the main interface, select "Tools", then "Options ...", pop up the "Android SDK manager-settings" window;

?

in the " Android SDK manager-settings window, fill in the "HTTP proxy server" and "HTTP Proxy port" input boxes with the above mirror server address (not including HTTP.//, such as) and port, and select "Force https://. Sources to be fetched using http://... check box. Click the "Close" button to close the "Android SDK manager-settings" window and return to the main screen after Setup is complete.

Select the Packages "," Reload ".

?

3. Setting Environment variables

①, Create a new system environment variable named android_sdk_home, and the variable value is your SDK installation path

?

② Add the%android_sdk_home%\platform-tools;%android_sdk_home%\tools to the PATH environment variable.

③, detects whether the configuration was successful. Open a command-line window and enter ADB. The configuration succeeds if the content appears as shown:

?

Publishing to the Android platform in Unity

①, the publishing interface needs to be Android-support-for-editor Click Download, then the following screen appears:

?

②, configure the installation path for the SDK and JDK in unity.

Edit-preferences-external tools-Configuration related paths

?

③, file-build Settings-player Settings

?

Where the Step 3 parameter describes:

Company Name (corporate name)
Product Name (products name)
Default icon (apk icon): Optional option?

Note: The following error may occur at this time

?

Modify the method: The original default value is modified.

Set The value of the Build indentifier property is in the "com.aaa.bbb" format .

The operation is as follows: Edit-Project Settings-Player-Modify property values

?

At this point, you can republish.

2018 Unity combined with Android SDK download installation and configuration tutorial

Related Article

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.