[英]How to fix android license unknown error in flutter doctor even after running it on cmd after downloading SDK command-line tools in android studio?
I have downloaded the SDK command-line tools in Android Studio from SDK manager and then tried to run 'flutter doctor --android-licenses` in command line prompt in Windows 11. Yet the licenses do not get automatically downloaded and I get the below error in cmd:-我已经从 SDK 管理器的 Android Studio 下载了 SDK 命令行工具,然后尝试在 Windows 11 的命令行提示符下运行“flutter doctor --android-licenses”。但是许可证不会自动下载,我得到以下信息cmd 中的错误:-
enter image description here在此处输入图像描述
I also do have an issue in Android Studio as "[.] Android Studio (version 2022.1) X Unable to find bundled Java version?"我在 Android Studio 中也有一个问题,如“[.] Android Studio(版本 2022.1)X 无法找到捆绑的 Java 版本?” Does this affect it?这有影响吗?
And I did try re-installing Android Studio once.我确实尝试重新安装 Android Studio 一次。
Are you using the latest Android Studio(2022.1.1(Electric Eel))?你用的是最新的Android Studio(2022.1.1(电鳗))吗?
There is a change with Java location as the latest Android Studio uses jbr
and not jre
. Java 位置发生了变化,因为最新的 Android Studio 使用jbr
而不是jre
。
There are a number of fixes such as https://github.com/flutter/flutter/issues/118502有许多修复,例如https://github.com/flutter/flutter/issues/118502
or https://youtu.be/INk__TbhdAE或https://youtu.be/INk__TbhdAE
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.