简体   繁体   English

为什么 Flutter Doctor 找不到名为“android --licences”的选项

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

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.我正在尝试完成 Flutter 的安装。在 Flutter 帮助中,它有一个名为“Flutter doctors android --licences”的选项但是,当您运行它时,Flutter 无法识别它自己的选项。

Running Windows 10. I installed from the Zip folder.运行 Windows 10. 我是从 Zip 文件夹安装的。 And have installed Android Studio.并安装了 Android Studio。

When I run c:> flutter doctor android--licences I get an error当我运行 c:> flutter doctor android--licenses 我得到一个错误

could not find an option named "android --licences"找不到名为“android --licences”的选项

Both Flutter and Android studio have been added to my path. Flutter 和 Android studio 都已经添加到我的路径中了。

I have run $ flutter config --android-sdk "C:\Users\vince\AppData\Local\Android\Sdk"我已经运行$ 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.我曾尝试从 Android sdk 文件夹以及 bin 文件夹内运行sdkmanager --update无济于事。

I have checked innumerable posts on SO as well as GIT. All without success.我已经检查了无数关于 SO 以及 GIT 的帖子。都没有成功。

Any suggestion is welcome.欢迎任何建议。 Thanks.谢谢。

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关闭您正在使用的终端和 go 到您的 flutter 安装文件夹找到一个名为flutter_console.bat的.bat 文件单击它再次运行它并右击下面的命令

flutter doctor --android-licenses

Hope it will help:)希望它会有所帮助:)

伙伴,试试 --android-licenses NO android --licences (注意你的拼写。不是 c)

I have the same problem.我也有同样的问题。 even I tidied ""flutter doctor --android-licences"" I got the same error and I solve it by the way Neo told.即使我整理了“颤振医生 --android-licences””,我也遇到了同样的错误,我按照 Neo 所说的方式解决了它。 thanks so much非常感谢

Try flutter doctor -v which gives more details.尝试flutter doctor -v ,它提供了更多详细信息。 This will enable you to see the particular licences that are not accepted.这将使您能够查看未被接受的特定许可证。 You can now run flutter doctor --android-licenses to accept them one by one by typing y (for yes) each time.您现在可以运行flutter doctor --android-licenses以通过每次输入y (表示是)来一一接受它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM