

Since version 4.2, and enabling them can vary based on the Androidįor Android 9.0 and higher, debugging is enabled by following

Developer options on Android have been hidden by default You will need to enable debugging and connect the device to the computer.Įach of these steps will be covered in more detail in the sectionsĪ device must be enabled for debugging in order to test an AndroidĪpplication. I wouldn't do that.This article explains how to setup an Android device and connect it to a computer so that the device may be used to run and debug Xamarin.Android applications.Īfter testing on an Android emulator, you will want to see and test your apps running on an Android device. Once the program is running on your tablet/phone, from MonoDevelop (because I don't use visual studio in unity), select the game in the list of processes to attach to.īased on your description you're doing things differently and are trying to manually upload compiled project.If this fails, make sure you have necessary drivers installed (my samsung tablet could not be debugged without kies installed first), and that adb did not decide to silently die (running any "adb" command from platform tools folder of android sdk will restart adb daemon).It will attempt to find the device, build project and push it onto device (and attach profiler if enabled). From within unity, use build & run command while in android mode (make sure it is marked as development build).If the command freezes, unplug the device usb usb cable.This will make adb attempt to restart in tcpip mode. If the device is not listed, something is wrong and you may be missing necessary drivers. from android sdk root run "adb devices" command.

