Unity Remote Splash Screen
Unity Remote 5 Android app splash screen

Getting Unity Remote for Android to work on Windows

30 July 2020: We’ve updated the article with helpful comments from past readers. Thanks for all your contributions!

If you’re developing a game for Android on Unity, Unity Remote is an irreplaceable tool that allows you to quickly test your game on your Android device using Unity’s built-in Play-in-Editor feature. Unfortunately, it is also pretty difficult to get Unity Remote to work, since it requires some very specific configurations on both your Android device and your computer.

Available solutions online are often incomplete, inaccurate, or outdated (Unity Remote was released more than 4 years ago, and the Android development scene is very different from how it was then), so you often have to piece solutions from multiple sources to get one that works. Hence, after recently grappling with getting Unity Remote to work on a handful of my own computers, I’ve decided to write an article outlining the most important steps for getting Unity Remote to work. Hopefully, this will save you from having to do over 9000 Google searches like I did.

For ease of access, this article has been separated into multiple sections and sub-sections, all of which are listed below. If you’ve already gone through some steps to set up Unity Remote, and don’t want to read through the whole article, I suggest checking out sections 2 and 3 and trying the steps that you’ve yet to try.

  1. Preparing your device
    1. Enabling USB debugging
    2. Installing Unity Remote 5
  2. Preparing your computer
    1. Installing Android Build Support for Unity
    2. Installing Google USB Driver
  3. Connecting and troubleshooting
  4. Afterword

1. Preparing your device

For Unity Remote to work, you need to make sure your Android device has:

  1. USB debugging enabled
  2. Unity Remote 5 installed

a. Enabling USB debugging

To enable USB debugging on your Android device, you first need to un-hide the Developer Options tab in your device settings by finding and tapping the Build number sub-tab 7 times.

The location Build number is slightly different for every Android device, so you need to do a bit of searching. For most devices, it should be found somewhere inside Settings > About phone or Settings > About device.

Tap build number 7 times
Doing this makes you feel smart, doesn’t it?

Once that is done, find your way into the newly-revealed Developer Options tab under your device settings, and enable USB debugging.

Developer Options in Android
Congratulations, you are now a hacker.
Enabling USB debugging in Android
But don’t get too excited. Lots more to do.

b. Installing Unity Remote 5

Remember to also install the Unity Remote 5 app onto your Android device. Once you are done with that, you can move on to configuring your computer.


Article continues after the advertisement:


2. Preparing your computer

For Unity Remote to work with your computer (and Unity installation), you’ll need to make sure that:

  1. Android Build Support for Unity is installed (with Unity-native Android SDK and NDK Tools, and OpenJDK)
  2. You have the Google USB Driver installed.

a. Installing Android Build Support for Unity

Android Build Support is a Unity Editor extension that adds a suite of features for designing games on Android devices. To add it to an existing Unity installation, open Unity Hub and head to the Installs tab. Click on the dropdown of the Unity version you want to install Android Build Support for, then select Add Modules.

If your version of Unity was not installed with Unity Hub, you’ll want to uninstall it and re-install it using Unity Hub. You won’t be able to add modules onto independent installations of Unity.

Add Module in Unity Hub
If Add Modules is missing, that means your Unity version was not installed using Unity Hub. You will have to uninstall that version manually and reinstall it.

Check the Android Build Support, then click on the dropdown beside it to make sure that Unity’s native Android SDK and NDK Tools, as well as OpenJDK, are checked too. Once that is done, click on Next and agree to the terms and conditions pop-up to start installing these extensions.

Android SDK and NDK Tools and OpenJDK are only available to Unity 2019.1 and above. If you are using an older version of Unity, you will have to download these packages yourself and link them to Unity under Edit > Preferences > External Tools. Consider upgrading, as Unity is very specific with the versions of the SDK and JDK its Android Build Support module can work with.

Android Build Support modules for Unity Remote
If Android Build Support is ticked in a grey checkbox, that means it’s already installed.

Once installation is complete, open your project with the Unity Editor that you’ve just installed Android Build Support for. Go to Edit > Preferences and click on the External Tools tab. You should have the following checkboxes marked:

Unity's External Tools window
If you don’t have that whole Android section, then Android Build Support is not yet installed.

Avoid using your own SDK, NDK or JDK installations. If there are incompatibility issues, it will stop Unity Remote from working.

Then, head to Edit > Project Settings and go to the Editor tab. Set the Device field to Any Android Device.

Setting the Unity Remote device
Simple, isn’t it? Unfortunately, things are going to get much harder.

Your Unity Editor is now ready to interface with Unity Remote.

b. Installing Google USB Driver

Some computers don’t seem to need Google USB Driver to get Unity Remote working, so if you’re feeling lucky, you can skip right to Connecting and Troubleshooting to try getting Unity Remote working first.

There are two ways of installing the Google USB Driver:

  1. Direct installation
  2. Through Android Studio’s SDK Manager

For most modern computers, only (2) works, but you should give (1) a try first, as (2) requires installing Android Studio first.

Direct installation

To install the Google USB Driver on your computer, you will need to head to this page, click on the download link and accept the terms & conditions pop-up. The downloaded file is a ZIP, which you’ll need to unzip.

To make use of the unzipped files, you’ll need to connect your Android device to your computer and open the Computer Management application. If you can’t find it, click on Start and type in the app’s name to search for it.

When inside the application, select Device Manager and find your attached Android device under Portable Devices. Right-click and select Update driver.

Adding Google USB Driver to Windows
This looks intimidating, doesn’t it?

Note: Sometimes you will find your mobile in Device Manager > Universal Serial Bus Devices instead of Portable Devices. Thanks to fibrizo for the heads up.

In the pop-up that appears, select Browse my computer for driver software on the window that pops up. Then, select the unzipped Google USB Driver folder (making sure to check Include subfolders) to install.

Through Android Studio’s SDK Manager

If the above steps do not work for you, you can also install Android Studio, then install Google USB Driver using its SDK Manager.

Android Studio's SDK Manager
Start up Android Studio after installation, and find the SDK Manager option under Configure.

If the SDK Manager window does not show, you can click on Settings below it to access the same window. Then, do a search for SDK Manager to find the window (as pictured below). If you can’t access the window, check if the Android SDK Location (again, as pictured below) is set.

The SDK Manager looks like the image below. You’ll find the Google USB Driver under Android SDK > SDK Tools.

Google USB Driver in Android Studio's SDK Manager
Remember to click on Apply once you’re done to start the installation.

Article continues after the advertisement:


3. Connecting and troubleshooting

With all of the above settings applied, and the requisite software installed, you should be able to run Unity Remote. Fire up the Unity Remote app on your Android device, then connect it to your computer. If you get a prompt on your Android device about allowing USB debugging, allow it.

Android USB Debugging prompt
If you get this prompt, it means your computer has detected your device.

Try playing your Android Unity project on your computer, with the Unity Remote app running on your Android device (i.e. it must be on your screen). If you are extremely lucky, you will experience a stutter on your Unity Editor, followed by Unity Remote emulating your game screen. For most of you, that probably won’t do the trick. In that case, try the following, in order:

  1. Double-check that you have set Unity Editor to use Any Android device. Refer to this section above again for details.
  2. Disconnect and re-connect your USB wire. Your computer might not have detected your Android device the first time.
  3. Try a different USB wire and / or a different USB port. Some USB wires and ports aren’t able to transmit data.
  4. Close and re-open Unity on your computer. Sometimes this does the trick.
  5. Restart Unity Remote on your Android device. Sometimes, this is what does the trick.
  6. Restart your computer and / or your Android device. If you’re really unfortunate, this is what will do the trick.
  7. Do (2), (3), (4) and (5) in random order for several times. This occasionally works. You can also try (6) first before doing this step.

You can also try the following methods as a last-ditch effort. People have reported that some of these worked for them:

  1. Restart both the Unity Editor (on the computer) and Unity Remote (on your device), then plug in your device with both applications on. Some computers are very particular about this sequence.
  2. Try using a different device, then restart your original device and try it again. If it works on the other device, it means you are doing something right!
  3. Try running Unity Remote on a different Unity project, then go back to your original one. Weird, but this has worked for people too.

If you notice that when your device is connected but not detecting, or it is only charging but not connecting (i.e. you can’t access the files on your device), check out this article from another site.

4. Afterword

If you still can’t get Unity Remote to work, we have another article titled More tricks to get Unity Remote for Android working on Windows. This is an article outlining the use of the Android Debug Bridge (adb) to check if your computer is able to detect your device, as well as a couple of other obscurities.

Lastly, if you:

  1. Find any errors in this article, or;
  2. Find a method that gets Unity Remote to work, that is not listed in this article;

Please leave a comment with the details! This article will be constantly updated with new findings, and you’ll be doing a public service to everyone else who is or will be going through the same battle of getting Unity Remote to work.

Update 24 August 2020: Many helpful readers have contributed to this article with their own findings in the comments section below, so give it a read!


Article continues after the advertisement:


There are 15 comments:

  1. Hi,
    I managed to get this blasted thing ‘working’ after hours of trying EVERYTHING but it only works for a second or two on my android device.
    I hit play in the Unity Editor and the game flashes up on my android device for only a second or two.
    Whyyy??

    1. Hi Mika,

      I suspect that you might have multiple versions of adb running on that existing computer, or your USB port / wire may be faulty. It’s pretty difficult to troubleshoot these, as its hard to get feedback on Unity’s adb’s status, or on the USB ports / wires.

      You may have better luck trying to get Unity Remote working on another computer.

  2. Thank you so much, I spent so much time searching up tutorials on google to fix it and I finally found this post. You go through each step posting pictures and I can’t imagine how long it must have taken to make this.

    1. I’m glad you found it useful. It was tedious to collate / create the resources, but its easier to write than some of the other articles here because the content is pretty straightforward!

  3. I needed to read the “More tricks” guide. I stuck at “… adb devices” and found no device. That means my phone (Samsung) could not be found.

    I did NOT get an output “You are in the debug-mode, now”, but I found a solution.

    Go to developer options -> USB configuration. There is the MTP-protocol activated. Change that to MIDI and voilá, I gout the “debug-mode”-output. “… adb devices” found my device, too.

      1. Let me know if you managed to get it to work in the end! I have a computer that absolutely refuses to work with Unity Remote too, even though the connection is detected. Some computers are just really difficult.

  4. Just wanted to add that sometimes you will find your mobile in Device Manager > Universal Serial Bus Devices instead of Portable Devices.

      1. Thank to you for your great effort! I would have given up if it hadn´t been for these two articles of yours. I finally managed to make it work after having trying all kind of stuff without no luck. I think, in my case, installing ADB drivers via SDK Manager (instead of through other means) was the key; it started to work after doing that and rebooting and haven’t stopped yet. You saved me thousands of hours, so thank you again :D.

        Regarding Device Manager, I think you will find your Android device in a different category depending on the USB Configuration mode (PTP, MIDI, No transfer data, etc). By the way, in my case, Unity Remote works regardless of this Configuration mode, even with “No transfer data” mode; I don’t need Stay Awake either.

        1. I’m glad this article helped! I’ll update your new factoids into the article when I find the time. Really appreciate you taking the time to write all this out.

  5. Thank you for this very well-written post and the companion post on ADB! I couldn’t get Remote to work, but following these posts gave me hope that I was close. I think what finally did the trick was something not mentioned here, though, so I wanted to share.

    I went to Preferences and the Android section checkboxes were checked. BUT, I tried unchecking them and the path boxes were blank. I clicked the Browse button, and it filled in paths. BUT, I looked at the paths and they were not correct. SO, I manually pasted in the paths to the JDK/SDK/NDK installed by Unity. In my case, all 3 are here: C:\Program Files\Unity\Hub\Editor\[editor version]\Editor\Data\PlaybackEngines\AndroidPlayer. AFTER THAT, I closed the Unity editor on my PC, unplugged my phone, restarted Unity Remote on my phone, plugged it back in to my PC, restarted Unity editor on my PC, and Remote started working! I must say, the streaming experience is a bit underwhelming for so much headache, but it is better than nothing. :)

    1. Glad this post was of help to you. Thanks for contributing your tip too! I run Unity on multiple computers, and Unity Remote absolutely refuses to work on one of them (ironic, isn’t it, me being the author of this article and all). I’m going to try your tip on it and see if that is the trick that finally makes it work.

    2. I’ve managed to get my Unity Remote on the other computer working with your trick. Thanks so much! I’ve added your tips on the More tricks article.

Leave a Reply to Anonymous Cancel reply

Your email address will not be published.