Flutter plugin not installed; Dart plugin not installed;解决办法

修复运行flutter doctor提示以下错误方法

[!] Android Studio (version 4.2)
    ✗ 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.2/plugins ~/Library/Application\ Support/AndroidStudio4.2
cd /Applications/Android\ Studio.app/Contents/jre
ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk

注意:AndroidStudio4.2中的4.2Android Studio (version 4.2)中的版本号

再次运行flutter,一切正常了

你可能感兴趣的:(Flutter plugin not installed; Dart plugin not installed;解决办法)