不接受某些Android许可证.要解决此问题,请运行:flutter doctor --android-licenses [英] Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

查看:1309
本文介绍了不接受某些Android许可证.要解决此问题,请运行:flutter doctor --android-licenses的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using Linux. When try to run the following in Terminal:

flutter doctor --android-licenses 

它向我显示以下错误:

颤振:找不到命令

flutter: command not found

推荐答案

运行命令whereis flutter.如果这样不能提供路径/输出,则说明您没有正确设置颤动路径.

Run command whereis flutter. If that does not give you path/output then you have not set flutter path correctly.

在您的〜/.bash_profile文件中添加以下行:

Add the below line in your ~/.bash_profile file:

export PATH=<this is where you have to put your flutter path >/flutter/bin:$PATH source ~/.bash_profile

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

now whereis fluttershould give you the correct path and you wont get flutter: command not found

这篇关于不接受某些Android许可证.要解决此问题,请运行:flutter doctor --android-licenses的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆