(1)错误:
[!] Android Studio (version 2020.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ Unable to find bundled Java version.
(1)解决:
(1)生成替身文件
ln -s ~/Library/Application\ Support/Google/AndroidStudio2020.3/plugins ~/Library/Application\ Support/AndroidStudio2020.3
(2)重启终端
flutter doctor
截屏2021-08-09 下午3.10.35.png
(2)报错:
Unable to find bundled Java version
(2)解决:
(1)如果 /Applications/Android Studio.app/Contents/jre 下没有 jdk 文件夹,创建一个文件夹。
将 /Applications/Android Studio.app/Contents/jre/Contents 整个拷贝到jdk下一份。
(2)重启终端
flutter doctor
截屏2021-08-09 下午3.10.09.png
网友评论