You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows系统Flutter Doctor错误求助:下载的可执行文件无法运行

Fixing "Downloaded executables cannot execute on the host" in Flutter Doctor

Hey there, let's work through this frustrating flutter doctor error you're hitting. I know you checked that GitHub issue and only found Linux-specific fixes, so here are some platform-agnostic and targeted steps to get things working:

  • Fix file execution permissions
    This is the most common culprit. The downloaded Flutter tools might not have the right permissions to run on your system. Open your terminal and run this command (replace <your-flutter-sdk-path> with the actual path to where you installed Flutter):

    chmod -R +x <your-flutter-sdk-path>/bin/cache
    

    This recursively adds execute permissions to all files in the Flutter cache directory, which should let the tools run properly.

  • Clear and rebuild the Flutter cache
    Corrupted cache files can also cause this error. Start by cleaning your project's build files:

    flutter clean
    

    Then run flutter doctor again—this will trigger a re-download of any missing or corrupted executable files. If you're working with Android, you can also run flutter doctor --android-licenses to make sure all required licenses are accepted, which sometimes resolves related execution issues.

  • Verify your system architecture matches your Flutter SDK
    If you're on an ARM-based system (like M1/M2 Macs) or a 32-bit machine, make sure you downloaded the Flutter SDK built for your architecture. For example, x86 SDKs won't run properly on ARM Macs. Grab the correct version from the Flutter official site, replace your existing SDK, and try flutter doctor again.

  • Double-check your environment variables
    Ensure your PATH includes the Flutter bin directory, and that FLUTTER_HOME (if you set it) points to the correct SDK location. A misconfigured path can prevent the system from finding and executing the Flutter tools correctly.

  • Reinstall the Flutter SDK
    If none of the above works, a fresh install might be the way to go. Back up your projects, delete your current Flutter SDK directory, download the latest stable version, set up your environment variables again, and run flutter doctor once more.

内容的提问来源于stack exchange,提问作者Adam Burr

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 07:09:06