FTF Studio
FTF Studio

Reputation: 99

flutter app crashes on on startup in windows platform

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.

Upvotes: 1

Views: 1792

Answers (4)

sneha
sneha

Reputation: 11

This faced the same issue and got it fixed. Uninstalled visual studio 2022 and installed VS 2019.

Upvotes: 0

Radovan Palik
Radovan Palik

Reputation: 1

Install Visual Studio 2022 17.0.6 LTS. No updates, no problems :)

Upvotes: 0

FTF Studio
FTF Studio

Reputation: 99

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

Upvotes: 0

mohammad esmaili
mohammad esmaili

Reputation: 1727

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

Upvotes: 1

Related Questions