[英]Showing error in the "flutter doctor" about Android toolchain
Showing error about android toolchain显示有关 android 工具链的错误
!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for
detailed instructions.
So I read about this on how to fix this所以我阅读了有关如何解决此问题的信息
So I found a command named "flutter doctor --android-licenses" and output of "flutter doctor --android-licenses" is所以我找到了一个名为“flutter doctor --android-licenses”的命令和“flutter doctor --android-licenses”的 output 是
Android sdkmanager tool not found
(/Users/sagarkhurana/Library/Android/sdk/tools/bin/sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions.
and I already have android studio and and it's SDK location is "/Users/sagarkhurana/Library/Android/sdk"我已经有 android 工作室,它的 SDK 位置是“/Users/sagarkhurana/Library/Android/sdk”
Please help me I searched it alot but got no result Thanks请帮助我,我搜索了很多但没有结果谢谢
If you do not have the JDK
software installed or if JAVA_HOME is not set, then Flutter
will give this error message.如果你没有安装JDK
软件或者没有设置JAVA_HOME ,那么Flutter
会给出这个错误信息。 The following tasks provide the information you need to install the JDK
software and set JAVA_HOME on UNIX or Windows systems.以下任务提供了在UNIX或Windows系统上安装JDK
软件和设置JAVA_HOME所需的信息。
Download software from the below-given link.从下面给出的链接下载软件。 Download here 在这里下载
After a successful installation, you can now check from the command line using the below command.成功安装后,您现在可以使用以下命令从命令行进行检查。
Kindly exit flutter console (if it is open) then open it again for fresh restart then try to run flutter doctor again.请退出颤振控制台(如果它已打开),然后再次打开它以重新启动,然后再次尝试运行颤振医生。 Hope you will get a green check right now.希望你现在能得到一张绿色支票。
just download java for it and it will work well.只需为它下载java,它就会运行良好。 it happened to me too just try it, download and install java on your system它也发生在我身上,试试吧,在你的系统上下载并安装 java
Open Android studio > go to SDK manager from more actions > in android SDK option select SDK tools > install android SDK command-line tools(latest) and accept the licence.打开 Android Studio > 从更多操作转到 SDK 管理器 > 在 android SDK 选项中选择 SDK 工具 > 安装 android SDK 命令行工具(最新)并接受许可证。
It will run and if it still shows some licence is missing type the command given in the cmd and run flutter doctor again after accepting the licence.它将运行,如果仍然显示缺少某些许可证,请键入 cmd 中给出的命令,并在接受许可证后再次运行 flutter doctor 。
Go to SDK Tools in Android studio SDK manager, and check on Android SDK Command-line Tools (Latest) then install it. Go to SDK Tools in Android studio SDK manager,检查Android SDK Command-line Tools (Latest)然后安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.