Android Studio flutter doctor --android-licenses does not work

eivgtgni  于 12个月前  发布在  Android
关注(0)|答案(3)|浏览(139)

当我运行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


我在网上到处找,找不到任何答案。我是新的Flutter,不知道如何解决这个问题。任何帮助将是伟大的感谢!

deyfvvtc

deyfvvtc1#

在Android Studio中,您应该检查以确保安装了Android SDK命令行工具。添加此功能可以修复Flutter中的问题。


的数据

btxsgosb

btxsgosb2#

打开命令提示符并进入Android SDK目录,然后执行上面的命令。

sdkmanager --update

字符串

xwmevbvl

xwmevbvl3#

如果Android Sdk命令行工具被勾选,你仍然面临着上面的错误,只需通过取消勾选它卸载它,并通过再次勾选它重新安装回来,如下图所示.希望这有助于


的数据

相关问题