gpt4 book ai didi

android - flutter doctor --android-licenses 不起作用

转载 作者:IT王子 更新时间:2023-10-29 06:45:33 39 4
gpt4 key购买 nike

当我运行 flutter doctor 时,我注意到许可证状态未知。

[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17763.253], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
X Android license status unknown.
[√] Android Studio (version 3.3)
[√] IntelliJ IDEA Ultimate Edition (version 2018.3)
[!] VS Code (version 1.30.2)
[!] Connected device
! No devices available

! Doctor found issues in 3 categories.

我发现为了解析许可证,我需要运行此命令 flutter doctor --android-licenses。当我运行时,出现以下错误:

The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
A newer version of the Android SDK is required. To update, run:
C:\Users\myusername\AppData\Local\Android\sdk\tools\bin\sdkmanager --update

然后我尝试运行 C:\Users\myusername\AppData\Local\Android\sdk\tools\bin\sdkmanager --update 我收到以下错误:

'E\AppData\Local\Android\Sdk\tools\bin\' is not recognized as an internal or external command,
operable program or batch file.
Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli

我在网上到处找,找不到任何答案。我是新手,不知道如何解决这个问题。任何帮助都会非常感谢!

最佳答案

在 Android Studio 中,您应该检查以确保安装了 Android SDK 命令行工具。添加这个解决了我在 Flutter 中的问题。

android studio setttings

关于android - flutter doctor --android-licenses 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54602563/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com