'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?
Solution 1:[1]
Try these steps in-order:
In Unity, go to Edit -> Project Settings -> Editor, and set the "Device" to "Any Android Device"
Plug-in your phone.
Switch the connection type to USB tethering.
Enable developer mode (if already ON then switch it OFF before plugging in your phone)
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.
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.
In Unity, go to File -> Build Settings, then select your device (which will now be visible in the "Run Device" dropdown).
Now, open Unity Remote 5 on your device.
Hit play in Unity Editor.
It works for me! Hope this helps :)
Solution 2:[2]
I don't know how to fix it really for the time being but if you don't want to see this message again, go to PLAYER SETTINGS, editor, Unity remote, device, and select "NONE".
Solution 3:[3]
You have to intall the ADB drivers: https://adbdriver.com/downloads/
First make sure your phone is plugged in via USB and your pc has access right. Then make sure you have activated the USB Debugging Mode on your Android phone. To do so you need to enable the Developer Mode.
If this not working yet, you may have to install the Android SDK and Java and set their paths inside Unity.
More info here: https://docs.unity3d.com/Manual/UnityRemote5.html
And here: https://forum.unity.com/threads/solved-unity-remote-5-not-working.516092/
Solution 4:[4]
May be you not press "OK" when your device try get accept access to usb debug.
You can try:
- Press Win+R, type "cmd" and press "Enter"
cd 'C:\Program Files\Unity\Hub\Editor\2020.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools'
(or path to your Unity version).\adb.exe devices
.- If you look like this:
List of devices attached
41faf63b unauthorized
try on device setting 'usb debug' => set "off" and set "On" again.
- Press "OK" on device.
Solution 5:[5]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Harsh patel |
Solution 2 | Achie1 |
Solution 3 | Pfinnn |
Solution 4 | redflasher |
Solution 5 | ??? ??????? |