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

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

问题描述

我遇到了奇怪的问题.在我更新我的 Android Studio 之前,flutter doctor 一切正常.一旦我更新了 Android Studio,当我运行医生时,它会显示无法找到捆绑的 Java 版本".我已经下载了 Java 安装程序并安装在我的 M1 Mac 上,但是重新启动后,运行 flutter doctor 仍然显示相同的错误.奇怪的是,当我卸载北极狐版本,并重新安装旧的 Android Studio 版本时,运行医生时一切正常.如果你们中有人遇到过这个问题,请帮忙指点一下.谢谢

解决方案

答案已经在这里发布.>

Mac 用户:

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

在终端输入以下命令后:

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

Im facing weird issue. Before I update my Android Studio, everything went fine in flutter doctor. Once I've updated Android Studio, when I run the doctor, it showing "Unable to find bundled Java version". Ive already downloaded Java installer and install on my M1 Mac, but after restarted, run flutter doctor still showing the same error. The weird things is, when i uninstall the Arctic Fox version, and re-install the older Android Studio version, everyhting went fine again when run the doctor. Please help to advise if any of you have encountered this issue. Thanks

解决方案

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

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

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