CommandInvokationFailure: Unity Remote requirements check failed

hello, so I am currently building an android game, I installed the Android SDK and JDK files using Unity Hub and I want to try the game on my phone and downloaded Unity Remote 5, but when I try to play it in Unity, it just gives me this error;

CommandInvokationFailure: Unity Remote requirements check failed
C:\Users\PNP-AIDG\AppData\Local\Android\sdk\platform-tools\adb.exe forward tcp:7201 tcp:7201

stderr[
adb.exe: error: no devices/emulators found
]
stdout[

]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
UnityEditor.Android.ADB.Run (System.String[] command, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)

And I just dont know how to fix this problem, anyone have any ideas?

2 Likes

Got it! If you dont connect a proper phone to pc to test the app, then go to player settings, editor, Unity remote, device, and select “none”. :slight_smile:

Edit → Project settingsEditorUnity Remote/Device → set to None

1 Like

If someone is still looking for the solution, this worked for me:
https://stackoverflow.com/a/66345155/10829384

A year later, but… One thing I’ve found is that, at least on both of my LG phones, you need to make sure that the USB mode is set to ‘charging’ and debugging. And when/if it asks you for permission to access or share data, you have to deny. Counter-intuitive, to me at least. I think that if you allow it to share, or select almost anything other than charging, it views it as a media device and won’t allow installations and such.


I’ve had the same issue trying to use Android Studio. It will clearly show the device in Device Manager, show it as active, available, and ready to go in either program, and then… just not.

This is for who is still looking for a real solution.

Choose “INPUT MIDI” (Use your phone to communicate with music equipment) option when you connect your phone with USB cable to PC. Your phone will ask you for “RSA key allow” and you should press allow.

It will work if the below steps are correct;

  • Check this path for if there is SDK, NDK and openJDK folders

C:\Program Files\Unity\Hub\Editor\YOUR EDITOR VERSION\Editor\Data\PlaybackEngines\AndroidPlayer

if they are not there you should install a new editor with these tools or add as a modules to your editor.

  • Project Setting > Editor > Device = Any Android Device
  • Check your phone’s developer options are turned on.

This solution written for what happened to me with LG phone. Idk for Apple devices if their have specific problem.

I'm not sure which of the following may help you, as I tried a bunch of things before I got the error message to disappear once and for all.

  • Under the “Preferences / External Tools” menu, if you have overwritten the Android SDK Tools path (or any other path on this menu) for a previous Unity version, try reverting back to the default path assuming it’s installed in that location.

  • Assuming the paths are all correct, re-open Unity on your PC and connect your Android device with Unity Remote open.
    (Follow the usual checks/steps that you had to perform to get Unity Remote working initially)

I noticed this error can be toggled on and off by going to the “Project Settings / Editor” menu and setting the “Unity Remote / Device” drop down to “None”. However this will obviously prevent you from working with your Android device so it’s not a solution.

To solve this issue, I suspect you need to “refresh” a cached reference to your Android device (that you’ve used in the past for this project with Unity Remote). Just my guess though.

Hope this helps!

Problem fixed here : - YouTube

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 Download PdaNet+ / 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.