Flutter 运行程序“flutter.bat”运行失败:访问被拒绝行:1 个字符:1

问题描述 投票:0回答:1

我正在尝试在 VS code 上运行我的 flutter 项目,

flutter doctor 没有显示问题。

    C:\Users\isurus>flutter doctor -v
[√] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.19042.985], locale en-US)
    • Flutter version 2.0.6 at C:\src\flutter
    • Framework revision 1d9032c7e1 (2 weeks ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\isurus\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code (version 1.56.2)
    • VS Code at C:\Users\isurus\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 90.0.818.56

No issues found!

当我运行 flutter run 或 vscode 终端上的任何命令时,都会显示以下错误。

PS C:\Projects est_mvvm> flutter run 程序“flutter.bat”运行失败:访问被拒绝行:1 字符:1

  • 颤抖奔跑

行:1 字符:1

  • 颤抖奔跑
  •   + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
      + FullyQualifiedErrorId : NativeCommandFailed
    
    [1]: https://i.sstatic.net/wUaY1.png
    
flutter debugging visual-studio-code terminal sdk
1个回答
0
投票

嘿兄弟,问题解决了吗??因为即使我也遇到了同样的错误,所以解决方案是什么

© www.soinside.com 2019 - 2024. All rights reserved.