Why does Flutter Doctor not find an option named "android --licences"

1,990

close the terminal you're using and go to your flutter installation folder find a .bat file named flutter_console.bat click it to run it once again and just right the below command

flutter doctor --android-licenses

Hope it will help :)

Share:
1,990
Vince
Author by

Vince

Updated on December 23, 2022

Comments

  • Vince
    Vince over 1 year

    I am trying to complete the install of Flutter. Within the Flutter help, it has an option called "Flutter doctors android --licences" However, when you run it, Flutter does not recognise it's own option.

    Running Windows 10. I installed from the Zip folder. And have installed Android Studio.

    When I run c:> flutter doctor android--licences I get an error

    could not find an option named "android --licences"

    Both Flutter and Android studio have been added to my path.

    I have run $ flutter config --android-sdk "C:\Users\vince\AppData\Local\Android\Sdk"

    I have tried running sdkmanager --update from inside the Android sdk folder as well as inside the bin folder to no avail.

    I have checked innumerable posts on SO as well as GIT. All without success.

    Any suggestion is welcome. Thanks.

    • JideGuru
      JideGuru over 3 years
      Its flutter doctor --android-licenses not Flutter doctors android --licences. mind the spaces
    • Vince
      Vince over 3 years
      Thanks for that, I tried both - it makes no difference.