Reputation: 33
I'm trying to use unity remote 5. Here is what I've done:
But now when I press play in Unity, I got an error message :
CommandInvokationFailure: Unity Remote requirements check failed
C:\Program Files\Unity\Hub\Editor\2020.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe forward tcp:7201 tcp:7201
stderr[
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.ADB.Run (System.String[] command, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
Does anyone have a solution ?
Upvotes: 2
Views: 2892
Reputation: 1
Try it:
「Build Settings」 -> 「Player Settings」 -> 「Editor」 -> 「Device」 -> 「None」
Finished.
Upvotes: 0
Reputation: 39
Unity engine might sometimes be a little bit difficult to get working.
some suggestions :
Change the cable (sometimes this is the main issue).
Under Edit -> Preferences -> External tools, scroll down and untick and retick the squares (sometimes this also has fixed my issue)
If you have many versions of unity installed - if you are able to - delete them all and even from your program files (C:/Programfiles/unity/hub/editor
) and reinstall Unity fresh. I've had to do this before with one of my devices because it was getting confused which tools to load because I had so many versions installed.
If you are using a Samsung, install Samsung drivers.
Just know that you are not alone with this. Unity remote is very eccentric to get it to work. Sometimes it works today, but it won't work tomorrow.
Upvotes: 0