美文网首页
Flutter 异常总结

Flutter 异常总结

作者: 微笑面对start | 来源:发表于2019-07-29 16:28 被阅读0次

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).
  1. flutter项目无法编译。
Unable to run flutter from Android Studio- Entry point isn't within current project

解决:File -> Project Structure -> Modules -> Add Content Root(项目根文件夹)

相关文章

网友评论

      本文标题:Flutter 异常总结

      本文链接:https://www.haomeiwen.com/subject/zggbrctx.html