windowsflutterwindows-7-x64flutter-windows

My flutter app can't run on Windows 7 SP1 64bit


I'm flutter developer, and some of my clients still using Windows 7.

According to the docs, flutter deployed apps supports Windows 7, But when I try to run my app on Windows 7, I faced this issue:

flutter error on windows 7

I try manual adding missing dll files, but still not works:

flutter error on windows 7

Any solution?


Solution

  • For anyone facing this issue or similar issue, this is caused by one of your packages.

    Yes, flutter apps support windows 7 but some packages which imports native windows codes or dlls, doesn't support win 7

    For me it was caused by local_auth package which support only for windows 10 and later: enter image description here

    You can fix this issue by these steps:

    1. Build a windows release of your app by flutter build windows --release
    2. Open \build\windows\runner\Release folder of your project.
    3. You can see all of your app .dlls, search every .dll file name and see it's package documents and find that package which doesn't supports windows 7.
    4. Remove that package from pubspec.yaml and build your app again.