How to fix unable to run Flutter app from VSCode - flutter

I was using VSCode and Flutter without any problem in my Ubuntu machine.
Recently, I installed Mircosoft .Net core in my machine.
Later when I try to run a Flutter application by pressing F5, it is trying to download C#.
I'm unable to run Flutter application from VSCode, where as I can run the app from console using the flutter run command.

Guess this is a bug in VSCode. It works after downloading, C# package. It is kind of high-volume btw.

Related

Dart_LoadScriptFromKernel: The binary program does not contain 'main'. when I run flutterfire configure

I've been looking for a solution to this problem and I can't find it anywhere.
I'm trying to install Firebase and every time I do the flutterfire configure command it pops up Dart_LoadScriptFromKernel: The binary program does not contain 'main'.
I've already done the flutter Clear command, flutter upgrade, installed and uninstalled the dart and flutter plugins. flutter doctor is ok.
I moved the project folder into other place.
Both in Android Studio and in VSCode I can run the app normally.
Thanks for help!

Flutter run never loads on vs code and sometimes crashes on android studio on my chromebook

I recently installed Flutter on my Chromebook (4 GB RAM). I have been writing snippets of dart code using vscode with no issues. Recently, I decided to move into the flutter framework, and then when I try to run the default application generated after creating a new project, VS Code freezes after a while. I know initially this was supposed to take a while to load being my first time, but is over 1 hour the appropriate time?
I have tried restarting VS Code several times, but still the same output. I even switched to using Android Studio, and this even crashes after a while.
What could be wrong or what am I getting wrong? I followed the official installation process on both VS Code and Flutter.dev sites.
i will assume that you have set up your emulator correctly and you opened the emulator with these steps:
1- on your keyboard use ctrl + shift + p and choose Flutter: Select Device and wait for the emulator to open.
2- after the emulator starts, from the upper menu of VSCode select Run > Run without debugging.
the app should run, if the problem persists, in VSCode open a new terminal window and type :
1- flutter upgrade
2- flutter clean
3- flutter pub get
try to run the application hopefully it will run

MissingPlginException sqflite flutter

there is no problem when I run it on my own phone, but when I ctrl f5 with windows and emulator, I got such an error. It worked when I uninstalled the app from the emulator and ran it again. Why did this happen and how do I solve it in windows?
You use this package pub.dev/packages/sqflite that doesn't support Windows application right now.

scrcpy won't run when the flutter app is opened in the IDE

hi guys so i'm using a physical device during development and i also have scrcpy screen share installed. the problem is every-time i open a flutter project in the IDE the scrcpy stops and i don't quite understand what's causing this problem.
i'm using Ubuntu 20.04
Your IDE opens another version of adb. Check the output of scrcpy (run scrcpy-console.bat on Windows).
See https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions

Flutter on VS Code run stuck on "Installing build\app\outputs\apk\app.apk..."

When I run my application using the VS Code Run and Debug, The app is installed on my device and is stuck on a white screen. Meanwhile in the editor, the VS Code notification is stuck on "Installing build\app\outputs\apk\app.apk..."
I've tried to run different flutter apps on the physical device but was still met with the same error. I've also tried to run the flutter example increment app, but to no avail. I also uninstalled and reinstalled the flutter sdk from the stable GitHub branch but that also did not work. I've also tried solutions from about 22 other questions with similar problems.
However, when I use flutter run from the command line, the app installs and launches on my phone, however, I'm unable to use the Flutter DevTools Inspector.
P.S I've been able to debug flutter apps on the device with the Flutter DevTools in the past.
As of Flutter v1.20.2, this problem has been resolved. The linked GitHub issue is here if you disagree about the problem being solved.
You'll need to end the flutter, dart and flutter processes. So in terminal do this:
killall adb
killall dart
killall flutter
Then reload vscode