adb
connects to my device (Xiaomi Redmi 4, MIUI 11.0.2, Android 7.1.2) just fine via USB as well as via WiFi. However, I've had no success trying to connect flutter. Flutter does detect my device when I connect via USB but doesn't prompt for an Authorization dialog:
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.14.6, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Android Studio (version 3.6)
[!] Connected device
! Doctor found issues in 1 category.
$ flutter devices
No devices detected.
Run 'flutter emulators' to list and start any available device emulators.
Or, if you expected your device to be detected, please run "flutter doctor" to diagnose potential issues, or visit
https://flutter.dev/setup/ for troubleshooting tips.
• Device 9fd66a407d14 is not authorized.
You might need to check your device for an authorization dialog.
I've tried
adb kill-server
andadb start-server
along with disconnecting and reconnecting my device- Revoking USB Debugging authorizations from my phone
- Disabling and renabling USB debugging from my phone
- Restarting my phone
but flutter still says that my device is not authorized.
Is there a solution for this?
adb reconnect offline
to try to reconnect to offline/unauthorized devices – Crittaadb
works just fine. It's flutter that doesn't seem to prompt for an authorization dialog. And I've triedadb reconnect offline
but that doesn't seem like a valid command – Worker