Android 完成时出现错误:当我第一次运行颤振时,Gradle任务assembleDebug失败,退出代码为127

Android 完成时出现错误:当我第一次运行颤振时,Gradle任务assembleDebug失败,退出代码为127,android,ios,flutter,visual-studio-code,Android,Ios,Flutter,Visual Studio Code,我在跑步时遇到了一个问题。一旦我运行flatter,它就会在可视代码上显示以下错误,以及任何解决方案。我跑拍医生,不知道问题是否来自细节 Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching l

我在跑步时遇到了一个问题。一旦我运行flatter,它就会在可视代码上显示以下错误,以及任何解决方案。我跑拍医生,不知道问题是否来自细节

Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling
software rendering with "--enable-software-rendering".
Launching lib/main.dart on sdk gphone x86 in debug mode...
**env: bash\r: No such file or directory**                               
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                         2.9s
*Exception: Gradle task assembleDebug failed with exit code 127*```


Just in case you need the Flutter Doctor here is it:

```Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B50 darwin-x64, locale en-GB)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your
        plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.54.1)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.```

您是否在VS代码中下载了颤振和飞镖插件? 一旦完成了本网站文章中提到的步骤

如这一行所示

**env:bash\r:没有这样的文件或目录**

您似乎下载了Flatter的Windows二进制文件,但您正在使用macOS。您应该下载正确的二进制文件并重新安装flatter。查看此处以了解更多信息:

是的,我这样做了,仍然是相同的错误