Flutter环境配置遇到的问题
从官网下载解压发行版之后遇到的问题
下载解压的过程就不再赘述了
Flutter is Google’s SDK for crafting beautiful, fast user experiences for mobile, web and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
Flutter是谷歌的一个通过单一代码库就能制作界面美观、方便用户体验的手机端、web端和桌面端软件的SDK。Flutter基于现有代码,正在被全世界的开发者和组织使用,同时它也是开源和免费的。
1.下载了Flutter发行版解压后打开console.bat无法识别flutter版本,提示非Git项目
解决方案:在想要解压安装Flutter的文件夹右键选择git here使用Git创建一个Flutter文件夹。
2.上一步完成后运行console.bat提示:fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
解决方案:在在flutter目录下 : git commit --allow-empty -n -m “Initial commit”
问题2解决方案转载自https://www.jianshu.com/p/da64c77d15ee