The unity on Android Real Machine debugging

Source: Internet
Author: User

Unity for some time, has been heard unity can be on the Android real Machine debugging, Miss a long, finally successfully debugged.

The information on the web is rarely felt and is hereby recorded for sharing.

The process is as follows:

1. To hit the Android version of the package, it is important to check the debug three options tick, respectively, development build, Antoconnect Profiler (Connection Profiler), script debugging (scripting Debugging)

2. Run the program on Android, do not run, Unity Profiler and Mono cannot find the program.

3. At this point, open the Profiler window in Unity Editor and click Active to see the options for the real machine device in the profiler. If not, keep looking down.

4. Real machine debugging needs to enter the following command, the profiler connection failure can also try.

adb forward tcp:54999 localabstract:Unity-<insert bundle identifier here>

举个例子吧 
adb forward tcp:54999 localabstract:Unity-com.test.test

意思是把本地端口重定向到后面的unix域上去了,反正应该可以连上。如果还失败的继续往下看。

5. Here I have a guess, if you fail again, you can try to add the ADB path to the system path.

6. If you can see the profile, you can try Mono's attach, see if there is a real machine option, if there is, you can hang up debugging, not to continue to look down.

7. It should be noted that the phone and the debugger should be under a network segment.

8. No more. If not, go to the Unity website to see the documentation or Google Bar.

The unity on Android Real Machine debugging

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.