Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CommandInvokationFailure: Unity Remote requirements check failed

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?

like image 916
Neowb Avatar asked Feb 16 '26 21:02

Neowb


1 Answers

Try these steps in-order:

  1. In Unity, go to Edit -> Project Settings -> Editor, and set the "Device" to "Any Android Device"

  2. Plug-in your phone.

  3. Switch the connection type to USB tethering.

  4. Enable developer mode (if already ON then switch it OFF before plugging in your phone)

  5. Enable USB debugging (if already ON then switch it OFF before plugging in your phone)

When you will turn on USB debugging your phone will ask to allow the connected PC to access the RSA, allow it.

  1. Now, switch the connection mode to "USB for Transferring files/Android Auto", the phone will again ask to allow the computer to access the RSA, allow it.

  2. In Unity, go to File -> Build Settings, then select your device (which will now be visible in the "Run Device" dropdown).

  3. Now, open Unity Remote 5 on your device.

  4. Hit play in Unity Editor.

It works for me! Hope this helps :)

like image 83
Harsh patel Avatar answered Feb 18 '26 10:02

Harsh patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!