Home > OS >  flutter app crashes on on startup in windows platform
flutter app crashes on on startup in windows platform

Time:02-25

I am facing this error while running my newly created flutter app on the enter image description herewindows platform. can anyone please help me .

Launching lib\main.dart on Windows in debug mode...
Building Windows application...                                         
Can't load AOT data from C:\Users\janha\Downloads\Compressed\Web_scripting\desktop_app\build\windows\runner\Debug\data\app.so; no such file.
Unable to start engine without AOT data.
Failed to create view controller.
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
Error launching application on Windows.

CodePudding user response:

You have to use vs2019 this error apears in new version of visual studio

follow this link install vs2019 then install Desktop development with C

if you had same error again! delete windows folder and make it again

CodePudding user response:

I fixed the issue. I did as the @mohammad esmaili said, but I think that did not work. The flutter windows app Administrator privileges. So I went to the directory that flutters build windows app and runs that app as administrator.. that's it. now the flutter windows app got its privilege so it works perfect

  • Related