当前位置: 首页 > 面试题库 >

不接受某些Android许可证。要解决此问题,请运行:flutter doctor --android-licenses

曹焱
2023-03-14
问题内容

我正在使用Linux。当尝试在终端中运行以下命令时:

flutter doctor --android-licenses

它向我显示以下错误:

颤动:找不到命令


问题答案:

运行命令whereis flutter。如果没有提供路径/输出,则说明您没有正确设置抖动路径。

将以下行添加到〜/ .bash_profile文件中:

`export PATH=<this is where you have to put your flutter path

/flutter/bin:$PATHsource ~/.bash_profile`

现在whereis flutter应该给您正确的路径,您将不会 flutter: command not found



 类似资料: