Flutter docter 报错:Flutter / Dart plugin not installed Android Studio

安装Flutter遇到了如下的错误:

Android Studio (version 4.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.

解决方案

方案一:

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1

方案二:

升级Flutter Beta版本

flutter channel beta
flutter upgrade

原因分析

Android Studio4.1版本将Plugin路径改了,所以要么升级Flutter,要么映射一个路径。