Flutter 环境配置,创建工程
#下载flutter git clone https://github.com/flutter/flutter.git #导入到环境变量 export PATH="$PATH:`pwd`/flutter/bin" #pre-download development binaries flutter recache #打开一个iOS模拟器 open -a Simulator #环境检查 flutter doctor #fix error flutter doctor --android-licenses sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo gem install cocoapods #vs code 安装插件 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter #Android studio 安装flutter插件 #idea 安装 插件 export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin" echo $PATH which flutter flutter create my_app cd my_app flutter run 参考: https://flutter.dev/docs/get-started/install/macos https://codelabs.flutter-io.cn/codelabs/first-flutter-app-pt2-cn/index.html#3