Unity_Android packaged with the environment configuration (II)

unity3d configure Android environment, packaged and released Apk Detailed process:

First you have to see whether the unity unityAndroid installation package file, if there is no (my advice is to remember that you re-download it again unity checked Android option, or you install or white, can not be packaged apk)

A: SDK and JDK Download: http://pan.baidu.com/s/1mhVaXHe

Once downloaded unzip the file

 

 
 

Install the JDK

 

 
 

Click Next to install it separately.

 

 

 

 

 
 

installing

Has occur during the installation process twice to select the installation directory interface, if the default path is not two paths, all changed the following path, and if so, do not control:

jdk installation directory: C: \ Program Files \ the Java \ jdk1.6.0_22

jre installation directory: C: \ Program Files \ the Java \ jre6 \

After installing, configuring environment variables

Third, open the Environment Variables window method

Right My Computer] - Click [Property] - Click [Advanced] - [click Environment Variables].

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
 
 
 
 
 
 
 

A total of three new environment variables, as follows

First group

Variable name: JAVA_HOME

Variable value: C: \ Java \ jdk1.6.0_22

Second Group

Variable name: PATH

Variable value:% JAVA_HOME% / bin

The third group

Variable name: CLASSPATH

variable:

.;%JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/lib/dt.jar

Click OK when finished, complete the configuration environment variable

 

 

 

 

 
 

- - - OK

Four: Copy android-sdk-windows folder to the C drive or the D drive or any disk to any directory you can find, pay attention: not in Chinese catalog

 
 

 

 

After copying is complete, open unity, create a new project, open the Edit-Preferences option

 
 

Edit-Preferences

SDK Address: Click Browse, find the path just copied android-sdk-windows folder resides

 
 

Click on Browse

 

 

 
 

Select the path to the folder

JDK address: C: \ Program Files \ the Java \ jdk1.7.0_67

 
 

JDK address

 
 

JDK path

After completion, the new scene, save the scene, adding to the build inside to switch to Android platform Android platform

 
 

Switch

Click Other Settings BundleIdentifiercom.Company.ProductName Player settings to modify for their own custom, for example: com.Test.test01, after the changes are complete, click Build

 
 

Player settings

After editing, click Build

 
 

Build

Add the file name and save path, save

 
 

Storage

Packing ......

 
 

Packing

Complete package

 
 

Complete package

If you do not want to use the phone test, can the next virtual machine, I use blue butterfly

 

This article Go http://www.jianshu.com/p/3c67fbfbb67c#



Author: small carp spit bubbles
link: https: //www.jianshu.com/p/8b94c5e12dfe
Source: Jane book
Jane book copyright reserved by the authors, are reproduced in any form, please contact the author to obtain authorization and indicate the source.

Guess you like

Origin www.cnblogs.com/Roz-001/p/11403360.html