1.Unable to find bundled Java ve

2021-10-15  本文已影响0人  ChaosHeart

(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

(3)设置中文

截屏2021-08-09 下午3.16.24.png

参考:
https://www.jianshu.com/p/30997d0bd830

上一篇下一篇

猜你喜欢

热点阅读