Why does Flutter Doctor not find an option named "android --licences"
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 :)
Vince
Updated on December 23, 2022Comments
-
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 over 3 yearsIts
flutter doctor --android-licenses
notFlutter doctors android --licences
. mind the spaces -
Vince over 3 yearsThanks for that, I tried both - it makes no difference.
-