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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Android Device Can't Connect With Profiler Window on Unity 2021

Discussion in 'Editor & General Support' started by amelie_1, Aug 24, 2022.

  1. amelie_1

    amelie_1

    Joined:
    Feb 22, 2020
    Posts:
    15
    Android Device (Android version 12) Can't Connect With Profiler Window on Unity 2021.3.6f1. I restarted Unity Editor and android device couple of times. In build settings Development build and Autoconnect Profiler are enabled. I also updated Unity to version 2021.3.8f1. Also doesn't work. Attaching screenshots.
    https://drive.google.com/file/d/1Lee1zhx2lMjczrKvpzbdoAEAZsu2VTVB/view?usp=sharing
    https://drive.google.com/file/d/1LffOCWrdrtF6HUVQdJRn93GdDyZqXgk1/view?usp=sharing
    https://drive.google.com/file/d/1tUkgBuQt_HoABHKTBd1pf7ZYhVh9h37j/view?usp=sharing
     
  2. G_Wojo

    G_Wojo

    Unity Technologies

    Joined:
    Feb 8, 2017
    Posts:
    43
    Hi, we recently became aware of this issue. What happens is that when we try to connect from computer to android device we need to set up connection tunnel by using:

    adb forward tcp:34999 <name of current app>

    When we wrote original code we choose extracting of the name for currently running app that we thought is common for android. Our tests on different devices did not uncover any issue, sadly we were just lucky and our recent testing on even bigger group of devices uncovered issues. Turned out that on newer android versions we are calling:

    adb forward tcp:34999 Unable to query last resumed application.

    Because we cannot query app name. This will be fixed in upcoming changes that should generally improve player connection experience. We have right now a lot of changes targeting android which is one of trickiest of platforms we are supporting. From bad news is that we are right now in phase of testing and it may take a while before it will reach 2021.

    For now as a workaround I would recommend using WiFi connection on your phone and use remote target and not local.
     
    MartinTilo likes this.
  3. amelie_1

    amelie_1

    Joined:
    Feb 22, 2020
    Posts:
    15
    How I can connect using wifi? I tried to connect via IP address, but I got such an error IP_error.png IP_error.png IP_error.png
     
  4. amelie_1

    amelie_1

    Joined:
    Feb 22, 2020
    Posts:
    15
    Well, I managed it.
     
  5. G_Wojo

    G_Wojo

    Unity Technologies

    Joined:
    Feb 8, 2017
    Posts:
    43
    I just noticed your reply, great that you managed to figure it out. We are curently in progress of bringing all our player connection connectivity changes to all of supported versions. With a little bit of luck soon this issue and many others should be resolved.
     
    MartinTilo likes this.
  6. amelie_1

    amelie_1

    Joined:
    Feb 22, 2020
    Posts:
    15
    Actually I managed one time, but further I couldn't :(