简体   繁体   English

Flutter with VSCode 显示未安装,即使已安装

[英]Flutter with VSCode shows not installed even though its installs

I just getting with flutter.我刚刚开始颤抖。 I have installed it along created a project successfully.我已经安装它并成功创建了一个项目。

But when I try to run it fails.但是当我尝试运行它时失败了。

Below is the output with flutter doctor -v以下是 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)

I have installed the Flutter extension.我已经安装了 Flutter 扩展。 I tried uninstall and install a couple of time, but still the same result.我尝试卸载并安装几次,但结果仍然相同。

I think there are two issues here:我认为这里有两个问题:

  1. Doctor says you don't have the extension医生说你没有延期
  2. Your project doesn't run你的项目没有运行

1 Doctor says you don't have the extension 1 医生说你没有延期

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.似乎 VS Code 最近可能已经开始对扩展文件夹进行小写,我们对它们的测试区分大小写。 The fix is in master but hasn't made the beta channel (as of 22nd June 2018).修复程序已在主版本中,但尚未进入测试版通道(截至 2018 年 6 月 22 日)。

Note: This check doesn't affect anything else, as long as the extension is installed this is just an issue with the doctor output.注意:此检查不会影响其他任何事情,只要安装了扩展程序,这只是医生输出的问题。

2. Your project doesn't run 2. 你的项目没有运行

This is probably not related to the doctor output if you can see the extension in VS Code.如果您可以在 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.但如果你能提供这些信息,我可以试一试。

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.如果您还没有,还值得从命令行使用flutter run ,看看它是否在那里工作,看看问题是否特定于 VS Code 或其他与您的设置有关的问题。

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.如果可以从命令行运行,那么我建议在 GitHub 上为 Dart-Code 存储库打开一个问题提供更多信息,我们可以从那里进行跟踪。

  1. Open your VS Code if you have it installed, if not you can still install it from the link.如果安装了 VS Code,请打开它,如果没有,您仍然可以从链接安装它。 Flutter internally use Dart language to build a mobile app. Flutter 内部使用 Dart 语言构建移动应用程序。 So you need to install this extension所以你需要安装这个扩展

  2. Then open this link "https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter" to install this extension.然后打开这个链接“https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter”来安装这个扩展。

  3. After the installation run your flutter doctor -v to confirm.安装后运行 flutter doctor -v 进行确认。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Typescript 显示错误,即使它在 VSCode 上编译也是如此 - Typescript shows an error even though it compiles on VSCode 无法导入 selenium,即使我在 vscode 中安装了 python 和 pip - not able to import selenium, even though I have python and pip installed in vscode 即使安装了 ipykernel 也无法在 vscode 中运行 jupyter notebook,但它仍然显示它不是 - unable to run jupyter notebook in vscode even when ipykernel is installed and still it shows it is not 即使在PATH中设置正确,“ pip”也会安装到错误的目录 - 'pip' installs to wrong directory, even though it's set correctly in PATH 即使应该安装 pygame 也无法导入 - Unable to import pygame even though it should be installed Pygame 无法在 VS Code 上运行,即使它已安装 - Pygame not working on VS Code even though it is installed Python 模块已安装也找不到 - Python Module Can Not be Found Even Though It Is Installed Flutter如何检测到已安装VSCode? - How does Flutter detect that VSCode is installed? .env 文件在 vscode 中显示错误(红色下划线) - 虽然它工作正常 - .env file shows errors(red underlines) in vscode - it works fine though 即使python执行程序成功导入它,vscode中的pylint导入错误 - pylint import error in vscode even though python executer successfully imports it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM