当我运行
我发现为了解决许可证问题,我需要运行这个命令:
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,并不知道如何解决这个问题。非常感谢您的帮助!
'E\AppData\Local\Android\Sdk\tools\bin\' 不被识别为内部或外部命令、可执行程序或批处理文件。 错误:找不到或无法加载主类 com.android.sdklib.tool.sdkmanager.SdkManagerCli
我还尝试将sdkmanager位置添加到我的路径中...但是还是出现了相同的错误。 - Tim