1.下面是因为有两个flutter存在或者是因为删除了一个但是环境变量在项目里没有变。解决方法在pubspec.yaml中点击packages upgrade稍等一会儿就好了。
running Flutter tool: /Users/... .../flutter
previous reference : /Users/... .../flutter
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项目无法编译。
Unable to run flutter from Android Studio- Entry point isn't within current project
解决:File -> Project Structure -> Modules -> Add Content Root(项目根文件夹)
网友评论