android - 颤振医生--android-licenses 不起作用
问题描述
当我运行时,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
我在网上到处找,找不到任何答案。我是新来的,不知道如何解决这个问题。任何帮助都会非常感谢!
解决方案
推荐阅读
- javascript - 如何在angularjs中获取url参数?
- javascript - 如何使用javascript查找数组中的所有值是否相等
- php - Cake PHP 2.X 设置邮件发送时的异常处理
- python - Python,pip:安装过程中避免使用 gcc
- ios - 当用户想要在从一个选项卡导航到另一个选项卡时不自动刷新 webViewController 时如何刷新它
- java - 应用程序跳帧
- json - 节点函数不返回 JSON 对象
- php - paypal rest api 多重计费协议
- robotframework - 如何从 cmd unittest 更改键形式字典
- java - 我可以访问数据库,但是在使用 java 将文档插入 mongodb 集合时遇到了一些异常