简体   繁体   English

在“flutter doctor”中显示有关 Android 工具链的错误

[英]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请帮助我,我搜索了很多但没有结果谢谢

I had the same problem and I solved it by following the solution at this link ;我遇到了同样的问题,我按照此链接中的解决方案解决了它; I use Linux but I believe it will fix your problem regarding the operating system you are using.我使用 Linux,但我相信它会解决您使用的操作系统的问题。

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.以下任务提供了在UNIXWindows系统上安装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.成功安装后,您现在可以使用以下命令从命令行进行检查。

  • C:\\Users\\Ainswers>java -version C:\\Users\\Ainswers>java -version
  • java version "1.8.0_251" java版本“1.8.0_251”
  • Java(TM) SE Runtime Environment (build 1.8.0_251-b08) Java(TM) SE 运行时环境(构建 1.8.0_251-b08)
  • Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode) Java HotSpot(TM) 64 位服务器 VM(构建 25.251-b08,混合模式)

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.

相关问题 FLUTTER DOCTOR [X] 安卓工具链 - FLUTTER DOCTOR [X] Android toolchain Flutter 医生许可证状态问题 Android 工具链 - 为 Android 设备开发(Android ZF20E3C5E54C0AB03D37AZ5D6203B 版本)。 - Flutter Doctor licence status issue Android toolchain - develop for Android devices (Android SDK version 32.0.0) Flutter Doctor --> Android toolchain - 为Android设备开发(Android SDK版本32.1.0-rc1) - Flutter doctor --> Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) 任何人都可以用 android 工具链和 android 工作室解决 flutter 医生问题的这些问题吗? - Can anyone fix these issues with flutter doctor issues with android toolchain and android studio? 如何在 Android Studio 中修复 Flutter 医生错误 - How to fix Flutter doctor error at Android Studio 错误:未知参数 --licenses flutter doctor --android-licenses - Error: Unknown argument --licenses flutter doctor --android-licenses flutter 医生 --android-licenses 显示错误消息 - flutter doctor --android-licenses shows error message flutter 医生 --android-licenses 错误,如何解决? - flutter doctor --android-licenses Error, how to fix this? Android Sdk manager not found- Flutter doctor error - Android Sdk manager not found- Flutter doctor error Flutter Doctor-无法识别Android Studion - Flutter Doctor - Android studion not recognized
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM