VSCode抖动的问题

时间:2018-08-14 17:29:32

标签: android debugging visual-studio-code flutter

在vscode中运行Flutter Doctor之后

[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.165], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    X Android license status unknown.
[X] Android Studio (not installed)
[√] IntelliJ IDEA Ultimate Edition (version 2018.2)
[!] VS Code, 64-bit edition (version 1.26.0)
[!] Connected devices
    ! No devices available

! Doctor found issues in 4 categories.

修复未知的Android许可证状态。我试图在vscode终端上运行 flutter doctor --android-licenses

但是我得到这个味精

flutter' is not recognized as an internal or external command,
operable program or batch file.`

现在我已经安装了memuPlayer一个Android模拟器,并且可以与Intelij正常工作,但好像vscode只是无法识别它 我试图在终端上运行--enable-software-rendering,但是我得到了这个消息

'--enable-software-rendering' is not recognized as an internal or external command,
operable program or batch file.

尝试在终端cmd和shell上提供任何帮助!

2 个答案:

答案 0 :(得分:1)

将flutter添加到您的环境路径(系统属性->高级->环境变量->为用户使用变量->路径->新建->将路径添加到flutter \ bin目录)以删除cartopy

答案 1 :(得分:0)

我不是Windows专家,但是我认为您必须将flutter二进制文件的路径放在PATH环境变量中。或者,您可以使用绝对路径来调用它(在终端中,例如C:\your\install\location\flutter\bin\flutter --android-licenses)。