Prerequisites
- Android SDK Platform Tools installed and
adbavailable in your shell - Developer options enabled on the Android device
- USB debugging enabled on the Android device
- For wireless setup, the computer and phone must be on the same network
Wired connection
- Connect the Android device to your computer with a USB cable.
- On the phone, accept the Allow USB debugging prompt if it appears.
- Check that the device is visible:
unauthorized, unlock the phone and accept the debugging prompt.
Once connected, run the Flutter app:
Wireless connection
Wireless debugging is the preferred option on modern Android versions.Android 11 and newer
- Open Settings > Developer options > Wireless debugging.
- Enable Wireless debugging.
- Tap Pair device with pairing code.
- On your computer, run:
- Enter the pairing code shown on the phone.
- Connect the device:
Legacy wireless flow
Some devices support switching ADB to TCP mode over USB first.- Connect the phone over USB.
- Confirm the device is visible:
- Restart ADB on TCP port
5555:
- Find the device IP address from Wi-Fi settings.
- Disconnect the USB cable.
- Connect over the network:
Running the app
After ADB sees the device, use the normal Flutter commands:Troubleshooting
Device does not appear in adb devices
- Reconnect the cable
- Try a data-capable USB cable
- Accept the USB debugging prompt on the phone
- Run
adb kill-serverthenadb start-server
Device shows as unauthorized
- Unlock the device
- Revoke USB debugging authorizations in Developer options
- Reconnect and accept the prompt again
Wireless device will not connect
- Make sure the phone and computer are on the same network
- Re-run pairing if the pairing session expired
- Disable VPNs or firewall rules that block local network traffic
