最近在学习 flutter ,出现了一个问题:
Warning! This package referenced a Flutter repository via the .packages file that is no longer available. The repository from which the 'flutter' tool is currently executing will be used instead.
running Flutter tool: /Users/xiezong/Desktop/flutter
previous reference : /Users/xiezong/Desktop/第三方功能/flutter
This can happen if you deleted or moved your copy of the Flutter repository, or if it was on a volume that is no longer mounted or has been mounted at a different location. 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 sdk 文件夹挪动了位置
解决方案:
1、修改flutter sdk路径
修改sdk路径2、修改环境变量路径
修改环境变量路径 修改环境变量路径 修改环境变量路径 修改环境变量路径路径在 .packages 里面修改
基本操作就是这样,记录一下。
网友评论