Connect your Physical Device with Android Studio
2 min readOct 12, 2022
Enable USB debugging
To let Android Studio communicate with your Android device, you must enable USB debugging in the Developer options settings of the device.
To show developer options and enable USB debugging:
- On your Android device, tap Settings > About phone.
- Tap Build number seven times.
- If prompted, enter your device password or pin. You know you succeeded when you see a You are now a developer! message.
- Return to Settings and then tap System > Developer options.
- If you don’t see Developer options, tap Advanced options.
- Tap Developer options and then tap the USB debugging toggle to turn it on.
Install the Google USB Driver (Windows only)
If you installed Android Studio on Windows, you must install a USB device driver before you can run your app on a physical device.
- In Android Studio, click Tools > SDK Manager. The Preferences > Appearance & Behavior System Settings > Android SDK dialog opens.
- Click the SDK Tools tab.
- Select Google USB Driver and then click OK.
Run your app on the Android device with a cable
- Connect your Android device to your computer with a USB cable. A dialog should appear on your device, which asks you to allow USB debugging.
- Connect your Android device to your computer with a USB cable. A dialog should appear on your device, which asks you to allow USB debugging.
- Select the Always allow from this computer checkbox and then tap OK.
- In Android Studio on your computer, make sure your device is selected in the dropdown
- Select your device and then click OK. Android Studio installs the app on your device and runs it.
- If your device runs an Android platform that isn’t installed in Android Studio and you see a message that asks whether you want to install the needed platform, click Install > Continue > Finish. Android Studio installs the app on your device and runs it.