Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find the vcruntime140.dll in flutter build windows?

Tags:

flutter

dart

enter image description here

I am new to Flutter, I've tried to build a Windows application right now. But in Flutter docs, they said that I have to put these files in my build folder. Where I can find those files so I can build my Flutter to a .exe program?

This showed an error while I transfer it folder to my friend's computer.

enter image description here

like image 405
Bimantaratirta Avatar asked Oct 21 '25 06:10

Bimantaratirta


2 Answers

To resolve the issue of missing DLL files (msvcp140.dll, vcruntime140.dll, vcruntime140_1.dll), here is how to do it:

  1. Locating the missing files:
    • Scenario 1 64-bit PC with 64-bit Flutter Build or 32-bit PC with 32-bit Flutter Build: Open C:\Windows\System32.
    • Scenario 2 64-bit PC with 32-bit Flutter Build: Open C:\Windows\SysWOW64.
  2. Locate the following files: msvcp140.dll, vcruntime140.dll, vcruntime140_1.dll.
  3. Copy these files and paste them into build/windows/runner/Release directory in your Flutter project.
like image 170
Hocine Abdellatif Houari Avatar answered Oct 24 '25 23:10

Hocine Abdellatif Houari


The lack of these DLLs can be fixed by installing "Microsoft Visual C++ 2015 - 2022 Redistributable". Probably the application that is showing this error depends on it installed.

Download from the links below. I suggest you install both the x86 and x64 versions. x86: https://aka.ms/vs/17/release/vc_redist.x86.exe x64: https://aka.ms/vs/17/release/vc_redist.x64.exe

like image 35
Salmanul Faris Avatar answered Oct 24 '25 23:10

Salmanul Faris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!