https://flutterchina.club/setup-macos/

%title插图%num

解决办法:
1、处理Xcode 报错

sudo gem install cocoapods

%title插图%num

2、处理Android Studio报错

%title插图%num
首先,打开 Android Studio 的 IDE 主界面,点击配置 Perferences选项,选择 Plugins 子选项

%title插图%num

*后,安装完成如上 Dart 和 Flutter 插件后,再次终端执行 flutter doctor 校验其状态即可。

%title插图%num
3、处理VS Code

%title插图%num

升级VS Code flutter 插件
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

%title插图%num

%title插图%num

 

4、处理Android toolchain

%title插图%num
source https://ruby-taobao.org not present in cache
%title插图%num

1)安装Android 9.0 Pie
操作步骤与路径:

Android Studio => SDK Manager => SDK Platforms tab => 选择 Android 9.0 Pie

2)安装Android BuildTools version 28.0.3
操作步骤与路径:

Android Studio => SDK Manager => SDK Tools tab => 选择右下角 Show Package Details => 在 Android SDK Build-Tools 里选择 28.0.3
1
3)勾选完成之后点击ok进行安装

4)安装完成后重启Android studio,

5)此时再去命令行执行flutter doctor

%title插图%num

6)如果有上面报错可执行,根据提示执行

%title插图%num

flutter doctor –android-licenses

5、*后一个问题连接上你的手机设备就可以了/:v

%title插图%num