A-A+

flutter –android-licenses 解决方法

2020年12月14日 编程技术 暂无评论

我在运行 flutter doctor 的时候,遇到了如下图的错误:

❎ Android licenses not accepted. To resolve this, run: flutter doctor –android-license

flutter –android-licenses 解决方法

解决方法:

终端执行 flutter doctor --android-license

全程都是选择 ‘y’

⚠️ 这里需要注意一点就是我当时运行了一次上面的命令依旧是报错的, 就?️反复运行了两次,然后就ok了, 原因我也说不清楚呢。

flutter –android-licenses 解决方法

反复运行之后:

flutter –android-licenses 解决方法

真的写代码的时候看到都是对勾✅, 真的老兴奋了!不知道其大人什么感受呢。

标签:

给我留言