Search Unity

Question How do i fix that

Discussion in 'Editor & General Support' started by Fabi_i, Jan 14, 2021.

  1. Fabi_i

    Fabi_i

    Joined:
    Jan 14, 2021
    Posts:
    2
    Every time I select the "Any Android device" option I get this error, when I want to play it in Unity

    CommandInvokationFailure: Unity Remote requirements check failed
    C:/Program Files/Unity/Hub/Editor/2019.4.17f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK\platform-tools\adb.exe forward tcp:7201 tcp:7201

    how do I fix that? I just wanna make some dumb android game, pls help :(
     
    Last edited: Jan 14, 2021
  2. Fabi_i

    Fabi_i

    Joined:
    Jan 14, 2021
    Posts:
    2
    i fixed it bruh
     
  3. XaNorKinG

    XaNorKinG

    Joined:
    Apr 22, 2020
    Posts:
    1
    hi how did you fix, can you tell me
     
    christopherkardel and MalayB like this.
  4. gametimefs

    gametimefs

    Joined:
    Jan 12, 2021
    Posts:
    1
    yeah how? =)
     
  5. MishDotCom

    MishDotCom

    Joined:
    Jan 17, 2021
    Posts:
    34
    Hi!
    Because our friend forgot to tell us, i found how to fix it:
    You see, the error mentions something about forward tcp 7201, which means that the request to connect the game to the android device is denied by the android device. to fix it you need to enable use debugging on your android device!
    Hope that helps...
     
    premulda14, dudekerr, Keywise and 2 others like this.
  6. TomaLANgodd

    TomaLANgodd

    Joined:
    Apr 13, 2020
    Posts:
    1
    the android device is denied by the android device. to fix it you need to enable use debugging on your android device!

    Thank You, been looking for a solution to this problem for the longest time.
     
    Matrix27 likes this.
  7. Hasini_Madhuwanthi

    Hasini_Madhuwanthi

    Joined:
    May 16, 2020
    Posts:
    10
    I think I am having the same issue. I enabled the usb debugging but not working
    stderr[
    error: cannot bind listener: cannot bind to 127.0.0.1:7201: An attempt was made to access a socket in a way forbidden by its access permissions. (10013)
    ]
    Please help me
     
  8. Vince3Ho

    Vince3Ho

    Joined:
    Dec 3, 2020
    Posts:
    1
    for me the fix was enabling Developer Mode on your Android phone. About phone -> Software Information -> tap your build number to enter development mode
     
    christopherkardel and Keywise like this.
  9. Beamer-boy

    Beamer-boy

    Joined:
    Jul 19, 2021
    Posts:
    3
    i enabled the developer mode and the USB debbuging and still dosnt work, i even installed the USB thing in android studio and dosnt work
     
  10. gogame007

    gogame007

    Joined:
    Jun 30, 2021
    Posts:
    1

    this video wille fix that
     
    Charliexist and shamisen07 like this.
  11. KyAuna

    KyAuna

    Joined:
    Jan 19, 2022
    Posts:
    1
    I've done everything thats been suggested. Enabled dev mode on my phone, enabled debugging, changed the build settings, made sure the SDK was downloaded, made sure it was set to allow All Android devices. Everything, and I still get the same error.
     
    NeonVacaCola and ProGameDevUser like this.
  12. ProGameDevUser

    ProGameDevUser

    Joined:
    Mar 17, 2018
    Posts:
    115
    Guys, I found a solution to the problem, this is due to the lack of a USB driver on the phone, I searched for a long time which ones to install correctly, but in the end I came to PdaNet http://pdanet.co/install / by installing the version for a computer with a USB phone connected, I had the computer authorized using the phone, and it works! Hurray! Unity Remote now connects without problems.
     
    raiwijaya4 likes this.
  13. zamesyne

    zamesyne

    Joined:
    Mar 17, 2019
    Posts:
    6
    Did anyone make any more progress with this? I am stuck. I've done everything to no avail.
     
  14. ProGameDevUser

    ProGameDevUser

    Joined:
    Mar 17, 2018
    Posts:
    115
    Hi! Look at my answer above, this is the only thing that helped me out of all the tips on the Internet
     
  15. zamesyne

    zamesyne

    Joined:
    Mar 17, 2019
    Posts:
    6
    @ProGameDevUser I did use this but now I run into a new issue which states no devices or emulators found. I've enabled USB Debugging already.
     
  16. zamesyne

    zamesyne

    Joined:
    Mar 17, 2019
    Posts:
    6
    At least through adb.exe it recognized my device but without it it's not letting me. I keep running into the error adb.exe: error: cannot bind listener: cannot bind to 127.0.0.1:7201: An attempt was made to access a socket in a way forbidden by its access permissions. (10013).

    I've enabled USB Debugging and Developer Mode.
     
  17. ProGameDevUser

    ProGameDevUser

    Joined:
    Mar 17, 2018
    Posts:
    115
    And you had a generalization on your phone like "allow access for XX:XX:XX:XX:XX"?
     
  18. raiwijaya4

    raiwijaya4

    Joined:
    Nov 10, 2022
    Posts:
    2
    Hey man, I want to say thank you so much you really help me.. I am glad see your comment.. I hope your life always happy..
     
    ProGameDevUser likes this.
  19. ProGameDevUser

    ProGameDevUser

    Joined:
    Mar 17, 2018
    Posts:
    115
    Thanks! It is very nice to realize that my experience was useful to others, good luck in development and all the best :)
     
  20. suicune2001

    suicune2001

    Joined:
    Apr 9, 2009
    Posts:
    118
    This fixed my issue! Thanks so much!
     
  21. pix3llc3ll

    pix3llc3ll

    Joined:
    Nov 10, 2022
    Posts:
    2
    I get the same error even after I enabled usb debugging!
    What could be the problem?
     
  22. ProGameDevUser

    ProGameDevUser

    Joined:
    Mar 17, 2018
    Posts:
    115
    See my answer above)
     
  23. Klimka13

    Klimka13

    Joined:
    Jul 30, 2019
    Posts:
    5
    I've enabled debugging and install via USB and nothing happened.
    I've rebooted the phone and it asked me for some more permission over usb, I allowed it, and it worked, but only once.
    I've changed the usb cable (!!!) and it works fine!
     
  24. ManieBesselaar

    ManieBesselaar

    Joined:
    Nov 1, 2018
    Posts:
    30
    Hi everyone. I had the same error but for me it happened each time I would hit play in the editor and my phone was not connected to my computer. Realized that I had set up Unity to "Play" my app on my phone via unity remote. Trick was to go to the project settings --> Editor and under unity remote heading set device to none . See https://docs.unity3d.com/Manual/UnityRemote5.html for reference. Not exactly the same issue as the o.p. but same error message. Hope this helps someone.
     
  25. techlabunity

    techlabunity

    Joined:
    Sep 18, 2023
    Posts:
    1
    Just connect your device with your pc and run your game in unity editor