尽管已安装VSCode的Flutter仍未安装 [英] Flutter with VSCode shows not installed even though its installs

查看:167
本文介绍了尽管已安装VSCode的Flutter仍未安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是扑朔迷离.我已经成功安装了它,并成功创建了一个项目.

I just getting with flutter. I have installed it along created a project successfully.

但是当我尝试运行时,它会失败.

But when I try to run it fails.

下面是Flutter Doctor -v的输出

Below is the output with flutter doctor -v

PS C:\android-app\flutter-app\flutter_first_app> flutter doctor -v

[√] Flutter (Channel master, v0.5.5-pre.9, on Microsoft Windows [Version 10.0.16299.461], locale en-US)
    • Flutter version 0.5.5-pre.9 at C:\android-app\flutter
    • Framework revision 587569337e (7 hours ago), 2018-06-13 00:02:21 +0200
    • Engine revision a328531402
    • Dart version 2.0.0-dev.60.0.flutter-a5e41681e5

[!] Android toolchain - develop for Android devices (Android SDK 28.0.0)
    • Android SDK at C:\Users\Sreyah Admin\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.0
    • ANDROID_HOME = C:\Users\Sreyah Admin\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    X Android license status unknown.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[!] VS Code, 64-bit edition (version 1.24.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected devices (1 available)
    • XT1706 • HKE63YLL • android-arm • Android 6.0 (API 23)

我已经安装了Flutter扩展程序.我尝试卸载并安装了几次,但结果还是一样.

I have installed the Flutter extension. I tried uninstall and install a couple of time, but still the same result.

推荐答案

我认为这里有两个问题:

I think there are two issues here:

  1. 医生说您没有扩展名
  2. 您的项目未运行

1医生说您没有分机号

这是我刚刚解决的错误.似乎VS Code最近可能已经开始降低扩展文件夹的大小写了,我们对它们的测试区分大小写.该修复程序已经发布,但尚未发布Beta版频道(截至2018年6月22日).

1 Doctor says you don't have the extension

This is a bug I've just fixed. Seems like VS Code may have started lower-casing the extension folders recently, and our test for them was case sensitive. The fix is in master but hasn't made the beta channel (as of 22nd June 2018).

注意:此检查不会影响其他任何东西,只要安装了扩展程序,这只是医生输出的问题.

Note: This check doesn't affect anything else, as long as the extension is installed this is just an issue with the doctor output.

如果您可以在VS Code中看到扩展名,则这可能与Doctor输出无关.您尚未提供有关您的应用无法运行的原因的任何信息(它是否给出错误信息?您看到了什么?),因此很难猜测;但是,如果您能提供该信息,我可以进行突击检查.

This is probably not related to the doctor output if you can see the extension in VS Code. You haven't included any info on the reason your app doesn't run (does it give an error? what do you see?) so it's hard to guess; but if you can provide that info I can take a stab.

如果您还没有这样做,也值得在命令行使用 flutter run 运行项目,以查看它是否在那里工作,看看问题是否特定于VS Code或其他问题.使用您的设置.

If you haven't already, it's also worth running the project from the command line with flutter run to see if it works there, to see whether the issue is specific to VS Code or something else with your setup.

如果从命令行可以使用,那么我建议在GitHub上为Dart打开一个问题-代码回购,其中包含更多信息,我们可以从那里进行跟踪.

If if works from the command line then I would recommend opening an issue on GitHub for the Dart-Code repo with more information and we can track it down from there.

这篇关于尽管已安装VSCode的Flutter仍未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆