Flutter搭建
Flutter中文网https://flutterchina.club/get-started/codelab/
Flutter官方网https://flutter.dev/docs/get-started/install/macos
1.完成iOS配置 配置简书https://www.jianshu.com/p/eb782589be82
安装Brew /usr/bin/ruby -e "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"
2.Android Studio官网https://blog.csdn.net/u010976213/article/details/80241900
3.使用Flutter Doctor进行检测是否配置OK
4.Android Studio 配置环境变量 https://www.cnblogs.com/quickcodes/p/5398709.html
先进行
touch .bash_profile指令
open -e .bash_profile输入指令
在bash_profile中写入所有路径
export PATH=${PATH}:/Users/ouyangqin/Downloads/flutter/bin
export ANDROID_HOME="/Users/ouyangqin/Library/Android/sdk"
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
5.会出现问题
Android Studio -打开Android Studio -> Preference > Plugins
有时候会搜索不到Android Studio Flutter插件(极有可能出现的问题)
将次选项关闭可以搜索到Flutter插件
6.检测获取的结果
网友评论