Flutter SDK path 修改

修改完后有下面警告

Warning! The 'flutter' tool you are currently running is from a different Flutter repository than the one last used by this package. The repository from which the 'flutter' tool is currently executing will be used instead.

This can happen when you have multiple copies of flutter installed. Please check your system path to verify that you are running the expected version (run 'flutter --version' to see which flutter is on your path).

-----------------------------------------------------------------------------------------

flutter packages upgrade 更新一下即可

注意更新前需要先确认 flutter 调用的path,配置的path,为新的path 的正确性,

可以通过flutter --version 查看当前使用的path,如果不正确可以检查下环境变量,如果还是不正确,可以尝试重启ide或者电脑。

发布了371 篇原创文章 · 获赞 32 · 访问量 24万+

猜你喜欢

转载自blog.csdn.net/perfectnihil/article/details/103237454