Unity Pack releases Android Novice teaching (teaching that can be read by small white) [go]

Source: Internet
Author: User

Copyright NOTICE: This article is Aries original article, reprint please indicate source. If you have any deficiencies, please feel free to comment or advise, contact QQ531193915

Scan code to follow the public number, get the latest resources

Recently, in some of Unity's communications groups, it has been found that many enthusiasts of unity development have encountered this problem.
And all said on the internet to see a lot of tutorials to get a few days can not get out, everyone explained that it is more cumbersome.
I just write a blog permanently saved. I hope everyone will like it.

This article is purely personal experience, if there are deficiencies, welcome to point out.

Get down to the chase.

If you want unity to be able to package the APK, you need to first download a version of JDK7 above (including 7).
and must be 64 bits.
remember your installation path when installing
Here are the connections I shared:
Link: Http://pan.baidu.com/s/1nuUjcpV Password: PTTN

After installing the JDK, it is one of the more important parts: Configure environment Variables

Here are the steps to proceed:

Right-click My Computer, select Properties
===>
Win7 Selecting advanced System settings
===>
Click Environment variables
===>
Click New in the system variable
===>
Variable name:java_home
Variable value: is the installation path that you previously asked to remember
===>
Locate path in system variables after clicking OK
===>
Click Edit
===>
See the current variable value after the semicolon delimiter, no words to add a semicolon, some words directly write the path of the JDK:
%java_home%/bin;
===>
Click OK and then create new again
===>
Variable name: CLASSPATH
Variable value:.; %java_home%/bin;%java_home%/lib;
===>
You're sure the JDK is ready to be configured.

Verify that the JDK is configured successfully below:
Run the CMD console
Enter Java press ENTER to see if there is a content output, as long as it is not
* * ' xxxx ' is not an internal or external command and is not a running program
or batch file. **
To prove that the path is configured successfully
Also enter Javac press ENTER. Ibid. result not for internal or external command
proves that the Classpath configuration was successful.

Next, download the second focus of the pack apk:SDK

Here are the SDKs I've compiled:
Link: http://pan.baidu.com/s/1bpcAWm7 Password: q16c

After the download is complete, unzip:
Be sure to put it in a place you can remember, and you can't have a Chinese path.

Finally, let unity identify your JDK and SDK.

First,* Open Unity's preferences*

Then,* Click External Tools and the red box is where you need to fill out the JDK and SDK *

In order to prevent some people from filling in the wrong, I declare here.
The Android SDK location is populated with the path of the downloaded SDK decompression
The JDK location is populated with the path to the JDK installation, which is the variable value of Java_home

After all the configuration is complete, you can pack the APK!

But before I pack, I want to say a few things.

One

Package name Issues

First, open the Player option under Project setting

Then, modify the package name, which is where the image is marked

Here you can fill in xxx.xxx.xxx
But must not use the default!

Two

or the package name.

If you have an Android plugins folder in your project.
Then you need to put the name of your package, which is what is changed in note One, and is the same as the package name of the Android project.
Failure to do so will result in the packaging not being successful, or the application failing to install, or applying a flashback.

But want to sharesdk such plug-ins, they are no mainactivity, so it does not involve the uniform problem of package name.

So here, all my sharing is over, writing relatively humble, I hope you like.

I am not a big God, just like research, are self-study records, what is wrong or insufficient, welcome to testify.

This article permanently connects http://blog.csdn.net/aries_h/article/details/51673338
Reprint please indicate the source, thank you

Unity Pack releases Android Novice teaching (teaching that can be read by small white) [go]

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.