

In Powershell on Windows, run adb devices.Make sure your phone is connected to your PC via USB and then you have set up USB debugging.In my case, I added alias adb='/home/MYUSERNAME/Android/Sdk/platform-tools/adb' to my. You need to make sure that you are using the same version of adb on Windows and Linux, which is why I installed the latest Android Studio on both.

In the SDK Manager in Android Studio, make sure you have an SDK installed that supports your phone (I had an older phone that needed an older SDK). Add this path: C:\Users\MYUSERNAME\AppData\Local\Android\Sdk\platform-tools. Under System variables, look for Path, click Edit, and then New. From File Explorer, right-click on This PC and then choose Advanced system settings, then Environment Variables.

Add adb to the environment variables on Windows.Install Android Studio on Windows (to get the SDK, SDK can also be installed another way).Here's what I had to do based on this Medium post.
