简体   繁体   中英

Flutter .exe Release not running on Windows

When I build flutter for windows with flutter build windows it generates a.exe file with its.dll files etc. However, running that file (.exe) gives me a white screen and my app is not running normally.

Running flutter run --release -d windows however builds my app normally and I can use it.

What is wrong here that running the.exe file is not starting my app properly?

This is my release folder structure when running flutter build windows :

在此处输入图像描述

Running the.exe file:

在此处输入图像描述

I was using sqflite_common_ffi on Windows and this was causing the issue. Initializing it was only valid for debug thus I had to add the sqlite3.dll to the release build folder. Then it worked fine like before when starting the.exe file.

Detailed description can be found here: https://github.com/tekartik/sqflite/issues/574

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM