Unity3d Android Phone Development environment configuration, can be real machine release debugging

Source: Internet
Author: User
Tags android sdk manager

This method is configured so that it can be posted directly to the phone on unity and can be debugged in real time.


1, configure the Eclipse environment: first download the installation package on the official website: http://developer.android.com/sdk/index.html, click this button to start the download

Go to the next page, select the version that corresponds to your system, and continue with the download.


32 and 64-bit version must not choose the wrong, if you are not clear to check your system version.

After the download is done like this package adt-bundle-windows-x86_64-20131030.zip, extract it out like this

To make it easier for us to put them into the ADT folder, move to the C packing directory, of course you can also put in other directories.

2. Configuring the Java Environment: opening the Eclipse.exe file in the Eclipse file will prompt

This is missing JRE runtime environment, let's download and install it

Open the Java website http://www.java.com/zh_CN/download/and click on the "so Java Download" link on the left.

Then select the Windows 64-bit version to download

After the download is completeInstall, tick change destination folder,

We also put it into the ADT folder for ease of administration.
, you build a JRE directory and then complete the installation.
3, configure the Android SDK: This time Open Eclipse.exe can start, the first popup is the development of the project directory, you can customize the casual,
OK, enter the main interface.
4, in order to update the SDK needs to modify the system Hosts file, if you use proxy Internet, this step can be skipped.
In this directory C:\Windows\System32\drivers\etc find the Hosts file and drag it to the desktop

Right-click to select Notepad, add the following line at the bottom and save it, then drag the hosts back. Note that this IP is time-lapse, can not use the words on the Internet to search one.
203.208.46.146 dl-ssl.google.com

Then make the following settings.


5. Update Angdroid SDK:
Open the Android SDK Manager window, select each version update, and start the download.
This is all turned into a checkmark to install.
6. Set up the Unity Android SDK Directory: Open Unity Edit-Preferences ... Browse the directory of the Andoid SDK, which is our previously customized C:\ADT\SDK directory
Next we perform the Unity release test, open the file-and build Setting compilation Settings dialog box, select the Android icon, click the Switch Platform button, so you can switch to the Android publishing platform. Connect your phone, then click Build and run to publish and try it out.
But there was no such thing as a hint, the hint is that the JDK is not installed, but we have installed Ah, the following troubleshooting. 7. Set Environment variables:. This allows you to C:\adt\sdk\platform-tools\ the Eclipse command for ease of entry; C:\adt\sdk\tools\; add to Path. 8. Check that eclipse settings are successful, open a command prompt, CD C:\adt\sdk\platform-tools into the directory, and then enter ADB Nodaemon server.
Discovery of ADB's 5037 port bindings failed, then Netstat-ano | Findstr "5037" to find the port is occupied by WHO, the original is 1884 process, usually QQ or other mobile phone management program, the main person to find out the results are not the same. Open Task Manager,
The PID display, find 1884 then the end of the task, remember to close all the software QQ and other mobile phone tools, if not found, then restart the computer, remember not to start QQ and other mobile phone tools. Of course you can tasklist | Findstr "1884", quickly find the occupation of the program.


Then, enter the ADB start-server at the command line, and the installation is successful.
8, this hint is lets you change the bundle identifier the name, does not use the default, the format is "the COM. Name of the product".
9, if the final compilation appears still this hint

Then open "Device Manager", if there is such an entry , then it means that your phone driver is not installed successfully, go to the Internet to find a new driver.

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.