Windows: If the Android device is automatically recognized by the system you still might need to update the drivers with the ones that came with the Android SDK.Your device may come with additional information or specific drivers from the manufacturer. This can be tricky, especially under Windows-based systems where drivers tend to be a problem. Go to Settings > Developer options, and check the USB debugging checkbox to enable debug mode when the device is connected to a computer via USB. On the 7th tap, Developer options are unlocked.
A small pop-up notification appears saying “you are now X steps away from being a developer” with a number that counts down with every additional tap. Navigate to Build number using the instructions above. Go to Settings > Developer options, then enable USB debugging. Note: On operating systems older than version 4.2 (Jelly Bean), the Developer options aren’t hidden.
Whether you’re building an Android application in Unity or programming it from scratch, you need to set up the Android SDK (software development kit) before you can build and run any code on your Android device.