Issues Connecting Profiler To Android Device?

Hi, I am using a Nexus 7 and am attempting to profile my game using Unity’s built-in profiler. I successfully built and ran a build on my Nexus 7 with both ‘Development Build’ and ‘Autoconnect Profiler’ checked. The profiler launches, as does the game on my Nexus, but the profiler doesn’t output anything. I haven’t been able to find a solution via Googling.

Any thoughts?
Thanks!

From what i know, the only way to profile on the device is using WIFI. Your machine running the editor and the device should be connected to the same network in order to be able to access one another.

Also, I occasionally run into a scenario where the editor will not auto connect to the device, and the device will not get listed under the “devices” list.

When i get this issue, i either:

  1. Reconnect to the WIFI network (or to a different one) and then try again.

or

  1. Manually enter the IP address of the device (in the profiler window).

I am connected to the same network… I have not tried manually inputting the IP – I will try that next. Thanks!

I know this is an old post, but still can’t get it to work properly.

It looks like I may be getting like… one frame for the profiler? I manage to get one frame to output to the overview (although it doesn’t show up visually in the graph), and then nothing more.

1 Like

Hi, did you manage to fix the problem? If so, how did you do it? I’m stuck at the same spot and there are no answers on google.

Joining the question and discussion.

Me too. Nexus 6P

me too ! bump

Same here!

Almost 2020 and still not able to connect using IP of the phone, over USB.

nothing has worked for me using Unity 2018.1. Tried over wifi and usb connected. I confirmed device is connected via adb console

I got mine to work, not really sure what fixed it. Make sure development mode is enabled and auto connect profiler is on. Use only Build and Run, don’t use Build.
Follow the steps mentioned here:

we’ve been working extensively on fixing issues with the connection over the last half year or so and parts of that have landed and been back ported, some other fixes are still in flight.

Unity 2018.1 is no longer supported and won’t be receiving these fixes, please update to latest 2018.4 (or any other supported version) and try there.

Where-ever possible, please consider filing a bugreport if you experience connection issues on any of the latest release within the supported versions (LTS or current tech stream versions). So that we can make sure that we’re fixing all of these.

Also, we’ve updated the Profiler Documentation substantially for 2019.3 and quite a bit since the 5.4 version linked above so please check that version for up dated info. (https://docs.unity3d.com/Manual/profiler-profiling-applications.html)

1 Like

Use only Build and Run, don’t use Build.