Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Issues Connecting Profiler To Android Device?

Discussion in 'Editor & General Support' started by Nelfoa, Sep 2, 2016.

  1. Nelfoa

    Nelfoa

    Joined:
    Jul 27, 2015
    Posts:
    9
    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!
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    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

    2. Manually enter the IP address of the device (in the profiler window).
     
  3. Nelfoa

    Nelfoa

    Joined:
    Jul 27, 2015
    Posts:
    9
    I am connected to the same network.. I have not tried manually inputting the IP -- I will try that next. Thanks!
     
  4. Nelfoa

    Nelfoa

    Joined:
    Jul 27, 2015
    Posts:
    9
    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.
     
    Last edited: Sep 15, 2016
    breban1 likes this.
  5. Dextozz

    Dextozz

    Joined:
    Apr 8, 2018
    Posts:
    488
    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.
     
  6. zngb

    zngb

    Joined:
    Aug 5, 2015
    Posts:
    20
    Joining the question and discussion.
     
  7. LastChaos

    LastChaos

    Joined:
    Dec 9, 2013
    Posts:
    39
    Me too. Nexus 6P
     
  8. LeleUnity

    LeleUnity

    Joined:
    Jul 30, 2016
    Posts:
    97
    me too ! bump
     
  9. bmoodyP3

    bmoodyP3

    Joined:
    Jul 23, 2019
    Posts:
    12
    Same here!
     
  10. rahulk1991

    rahulk1991

    Joined:
    Feb 22, 2019
    Posts:
    12
    Almost 2020 and still not able to connect using IP of the phone, over USB.
     
  11. cyborgjinx

    cyborgjinx

    Joined:
    Dec 10, 2014
    Posts:
    28
    nothing has worked for me using Unity 2018.1. Tried over wifi and usb connected. I confirmed device is connected via adb console
     
  12. rahulk1991

    rahulk1991

    Joined:
    Feb 22, 2019
    Posts:
    12
  13. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,160
    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)
     
    senkal_ likes this.
  14. regystutorials

    regystutorials

    Joined:
    Jan 31, 2021
    Posts:
    3
    Use only Build and Run, don't use Build.