Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Flutter and app store releases

A Flutter Windows app will not start because a DLL is missing

Your error

The code execution cannot proceed because flutter_windows.dll was not found. Reinstalling the program may fix this problem.2 more lines it can show

Fix it fast

Most common cause, 1 of 2

Only the .exe was copied, without its DLLs and data folder

Build in release mode and ship the whole Release folder as one unit, zipped or wrapped in an installer such as Inno Setup or MSIX.

Fix
flutter build windows --release
powershell Compress-Archive -Path build\windows\x64\runner\Release\* -DestinationPath my_app_windows.zip
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

"The code execution cannot proceed because flutter_windows.dll was not found" means Windows looked in the .exe's own folder and the DLL was not there. A Flutter 3.50 Windows app needs every .dll and the data folder from build\windows\x64\runner\Release beside the .exe. If msvcp140.dll or vcruntime140.dll is the missing one, install the Visual C++ Redistributable or copy those DLLs too.

  • Applies to Flutter 3.50 stable, Windows 11 25H2, Visual C++ v14 Redistributable
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

Open a Command Prompt in the folder you start the app from and list its contents, then ask Windows where the C++ runtime lives. A missing flutter_windows.dll or data folder is cause 1; where finding no copy of the runtime DLLs is cause 2.

Run this first
dir /b
where msvcp140.dll vcruntime140.dll vcruntime140_1.dll

Then find the line you see in this list and open its fix:

  1. 1Only the .exe was copied, without its DLLs and data folderThe folder holds my_app.exe on its own (or a copy on the Desktop), and the build folder next to it has flutter_windows.dll, plugin DLLs and data
  2. 2The PC has no Visual C++ runtime for the app's architectureThe message names MSVCP140.dll, VCRUNTIME140.dll or VCRUNTIME140_1.dll, and where prints no path for it

What does the error look like?

  • The code execution cannot proceed because flutter_windows.dll was not found. Reinstalling the program may fix this problem.
  • The code execution cannot proceed because MSVCP140.dll was not found.
  • The code execution cannot proceed because VCRUNTIME140_1.dll was not found.

Cause 1 of 2

Only the .exe was copied, without its DLLs and data folder

You seeThe folder holds my_app.exe on its own (or a copy on the Desktop), and the build folder next to it has flutter_windows.dll, plugin DLLs and data

Check

A Flutter Windows app is not a single file. The Flutter docs list what has to sit beside the .exe: all the .dll files from the same build folder, including flutter_windows.dll and one per plugin, and the data directory. Windows searches the folder the application loaded from before the system folders, so a lone .exe finds none of them.

Check
dir /b build\windows\x64\runner\Release

Fix

Build in release mode and ship the whole Release folder as one unit, zipped or wrapped in an installer such as Inno Setup or MSIX. Since Flutter 3.16 the output path includes the architecture (x64 or arm64), so update any packaging script that still reads build\windows\runner\Release. To start the app from the Desktop, make a shortcut to the .exe instead of copying it.

Fix
flutter build windows --release
powershell Compress-Archive -Path build\windows\x64\runner\Release\* -DestinationPath my_app_windows.zip

Verify

Unzip the archive on a clean machine, double-click my_app.exe, and the window opens without a DLL message.

Verify
dir /b Release\data

Confirmed by docs.flutter.dev

Did this fix it?

Cause 2 of 2

The PC has no Visual C++ runtime for the app's architecture

You seeThe message names MSVCP140.dll, VCRUNTIME140.dll or VCRUNTIME140_1.dll, and where prints no path for it

Check

The Flutter docs list the Visual C++ redistributables among the files every Windows build needs. Microsoft says the Redistributable must be at least as recent as the build tools and must match the app's target architecture. Developer machines have it from Visual Studio; a fresh end-user PC often does not.

Check
where vcruntime140_1.dll

Fix

Either have users install the latest Visual C++ v14 Redistributable for x64 (your installer can run it), or use the application-local option the Flutter docs describe and place msvcp140.dll, vcruntime140.dll and vcruntime140_1.dll next to the .exe before you zip the folder.

Fix
rem installer route: run vc_redist.x64.exe once on the target PC
rem permalink: https://aka.ms/vc14/vc_redist.x64.exe

rem app-local route: copy the three runtime DLLs into the Release folder before zipping
dir /b build\windows\x64\runner\Release\*.dll

Verify

where now finds the runtime DLLs (in System32 or next to the .exe), and the app starts on the target PC.

Verify
where msvcp140.dll

Confirmed by learn.microsoft.com

Did this fix it?

How do I stop it coming back?

  • Make the CI job zip build\windows\x64\runner\Release as a whole and publish only that archive, never the bare .exe.
  • Test every release zip on a clean Windows VM without Visual Studio, which shows a missing runtime DLL before users do.
  • Bundle the x64 Visual C++ Redistributable in your installer and run it during setup.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Projects of mine on the same stack: TaxiDex, Dispatch Pro, Qist Bazaar.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.