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;
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
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.
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.