Flutter - Dartlang: Run Application command fails

481

Though my device was connected, it was not "authorized". I used the adb devices command to check if it was connected, and the output was something like this:

02:06 PM atom1: adb devices
List of devices attached
8XV5T15A20007972    unauthorized

Note the unauthorized on the last line. After some googling, I learned to go into my phone, and toggle Developer Options > USB debugging from enabled, to disabled, to enabled again. I did this without disconnecting the phone. Re-running adb devices then showed:

02:06 PM atom1: adb devices
List of devices attached
8XV5T15A20007972    device

Note device on the last line instead of unauthorized. I re-ran the Dartlang: Run Application from within Atom and the deploy worked. Somewhere in there, I had to accept the push to device from my phone.

Share:
481
cilphex
Author by

cilphex

Updated on November 29, 2022

Comments

  • cilphex
    cilphex over 1 year

    When using Atom with the dartlang package, I attempt to use the Dartlang: Run Application command and get the following result:

    [/Users/craig/Code/flutter-test/atom1] pub run flutter start
    Unable to run on Android.
    Unable to run on Android.
    Unable to run application - no connected devices.
    

    I get the same thing in the console when running flutter start in the app directory.

    My phone is a Nexus 6p that is connected to my computer via USB and has 'USB debugging' enabled in Developer options. How can I get these commands to successfully deploy the app to my device?

    • Seth Ladd
      Seth Ladd over 8 years
      Hi! Thanks for checking out Flutter. If you have any issues getting started, please email us at [email protected] and we'll do our best to help. Flutter is alpha and changing, so maybe the mailing list is the best way to help out. Thanks!