<unity3d>unity3d Debugging under Android

Source: Internet
Author: User

Turn from: http://blog.csdn.net/zuoyamin/article/details/11827309 One, tool preparation 1. jdk--because Android was developed based on the Java platform, the JDK must be installed. : http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008. Exe2. Android sdk--This is not much to say, to develop the Android program must. can go to the official website to download. : Http://developer.android.com/sdk/index.html#download3. unityremote.apk--This is installed on Android devices. You can download it in my resources. : http://download.csdn.net/detail/zuoyamin/6289709 Two, tool installation 1, JDK installation JDK installation Nothing to say, and the general installation software is no different. Here is the main point of the environment variable configuration, in fact, there are online!!! Right-click computer → properties → advanced system settings, and in the System Properties window, select environment variables. Click "New", Variable name: Java_home variable Value: D:\Program files\java\jdk1.6.0 (The actual path of the JDK will prevail!) After confirming, then "new" variable name: Classpath variable value:.; %java_home%\lib;%java_home%\lib\tools.jar (attention begins with ".;" If there is no path variable, create a new one and open it if there is one! Variable Name: PATH variable value:%java_home%\bin;%java_home%\jre\bin (note the value of the variable with ";" Now you can verify that the JDK is installed successfully. Start → run → enter cmd, enter javac in the Command Line window, and a list of commands appears stating that the installation was successful. 2, Android SDK installation unzip the downloaded SDK files, double-click "SDK Manager", select the package to be installed to download. There may be information about the failure during the download process. Workaround: Open the Hosts file under C:\Windows\System32\drivers\etc. Since he is read-only, we can copy it first, open it with Notepad, and then overwrite it with the pasted back. Added in the last line of the hosts file: 74.125.237.1 dl-ssl.google.com can be very good download! Configuration of the Android SDK environment variable: variable name: Android_sdk_home variable Value: X:\Program files\adt-bundle\sdk (whichever is the actual SDK path) if you open the path variable with the path variable, no new one is created. Some words are appended after the variable value:%android_sdk_home%\platform-tools;%android_sdk_home%\tools; now verify that the ANDROID SDK is installed successfully. Start the command line, enter Android-h, and the command list shows that the installation was successful! 3, unityremote.apk installation. Install unityremote.apk on a mobile phone or tablet with Android 4.0 or 4.0+ installed. Why choose to be 4.0 or 4.0+ here? The detailed reasons are not clear, I only know that only this version can be debugged. So we have to pay attention. Third, test 1, open the Unity3d software, do some configuration, select "Edit" → "perferences", in external tools, there is an Android SDK location, we will install the path of the Android SDK in the previous setup. 2, will be installed with UnityRemote mobile phone or Tablet PC, connected to the PC, through a variety of mobile phone assistants on it! It's good to make sure the phone is connected to the computer. 3, start the phone unityremote software, and then run a untiy program on the PC, here we can see the untiy game view scene on the phone. Just a bit of resolution is not ideal, but for testing is enough! 4, if not, restart Unity3d and mobile phones, repeat the above operation! I wish you all the best!

 

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.