在 M1 Apple Silicon 上更新 Android studio Arctic Fox(2020.3.1) 后,找不到与 flutter doctor 捆绑的 Java 版本 [英] Unable to find bundled Java version with flutter doctor, after updating Android studio Arctic Fox(2020.3.1) on M1 Apple Silicon

查看:95
本文介绍了在 M1 Apple Silicon 上更新 Android studio Arctic Fox(2020.3.1) 后,找不到与 flutter doctor 捆绑的 Java 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个奇怪的问题.在我更新我的 Android Studio 之前,flutter doctor 一切正常.一旦我更新了 Android Studio,当我运行医生时,它会显示无法找到捆绑的 Java 版本".我已经下载了 Java 安装程序并将其安装在我的 M1 Mac 上,但是在我重新启动后,运行 flutter doctor 仍然显示相同的错误.奇怪的是,当我卸载Arctic Fox版本并重新安装旧的Android Studio版本时,运行医生时一切正常.我该如何解决?

解决方案

答案已经在这里发布.>

Mac 用户:

设置 Java_Home 使用下面的文章 & 路径然后在应用这个 命令.

在终端输入以下命令后:

cd/Applications/Android Studio.app/Contents/jreln -s ../jre jdkln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin";jdk颤振医生 -v

I'm facing a weird issue. Before I updated my Android Studio, everything went fine in flutter doctor. Once I've updated Android Studio, when I run the doctor, it's showing "Unable to find bundled Java version". I've already downloaded Java installer and installed it on my M1 Mac, but after I restarted, running flutter doctor still shows the same error. The weird thing is, when I uninstall the Arctic Fox version and re-install the older Android Studio version, everything goes fine again when running the doctor. How can I resolve this?

解决方案

The answer is already posted here.

For Mac User:

Set Java_Home path using below article & then after applying this command.

after that type below command in terminal:

cd /Applications/Android Studio.app/Contents/jre

ln -s ../jre jdk

ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk

flutter doctor -v

这篇关于在 M1 Apple Silicon 上更新 Android studio Arctic Fox(2020.3.1) 后,找不到与 flutter doctor 捆绑的 Java 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆