设备环境
MacBook Pro M2、Android Studio (version 2022.1)
在运行`flutter doctor时报错:Unable to find bundled Java version.
![](https://img-blog.csdnimg.cn/img_convert/881822537c4a85a6d876e913b5154366.png)
解决方案
打开:应用程序 - Android Studio - 右击显示包内容。
将:/Applications/Android Studio.app/Contents/jbr/Contents复制一份出来
到:/Applications/Android Studio.app/Contents/jre/jdk/Contents(需要新增路径)
![](https://img-blog.csdnimg.cn/img_convert/b05dfece68ba0d88aa24c37cb6166aec.png)
搞完后,再次验证flutter doctor 通过✅
![](https://img-blog.csdnimg.cn/img_convert/db8df75dda473d8f6ebad25bb92a1137.png)