29

Trying to debug my Flutter App in my Android (Asus zenfone 3 max) without success.

Trying to find the problem, I ran the command:

flutter doctor

Output:

[!] Connected devices

! Doctor found issues in 1 category.

Too see more details:

flutter devices

Device H1AXB600S423ZP4 is not authorized.

You might need to check your device for an authorization dialog.

Considerations:

  • The debugger menu is enabled.
  • Debugging USB is enabled too.
  • The android is configured to transfer files (USB mode)
  • Using Intellij IDEA
João Mantovani
  • 2,230
  • 1
  • 21
  • 33

4 Answers4

80

On your device, go to Developer options-->Revoke USB Debugging and Disconnect your device. After reconnecting, you will get a RSA Fingerprint verification window, click on accept. Done..

Mohammed Alukkal
  • 980
  • 1
  • 8
  • 8
15

According to Eefret - on Stack OverFlow, it's was a problem with the certificate dialog on Android device at the moment of the connect

The problem on Intellij was the same of the Android Studio, and this question fixed the problem:

Android Studio - ADB Error - "...device unauthorized. Please check the confirmation dialog on your device."

João Mantovani
  • 2,230
  • 1
  • 21
  • 33
1

It happened because my android was recently updated. What worked was that I simply restarted the phone, and when connecting, the dialog appeared.

Dharman
  • 30,962
  • 25
  • 85
  • 135
0

for Linux developers the need to delete the content of .android, this worked for me and ofcourse i needed to enable USB debugging.

ezio
  • 359
  • 2
  • 13