Flutter first start - maximum depth error - flutter

I'm trying to test Flutter and see if I can learn it but I'm really struggling with the installation.
I've followed the step by step tutorial from the flutter official doc.
Then when I try to start flutter or run flutter doctor or every other command I got this error every time.
I've tried to delete flutter sdk, redownload zip, git clone sdk, reboot, change the path, create a new project.
But I got this "Page de codes active: 65001" instead of the flutter version in android studio
And when I run a flutter command I get this pub upgrade and then some error on some maximum heap depth limit.
Could someone help me to understand what's the problem here. Because for a new start with a fresh install and just downloading sdk and running a new project with all plugins installed as mentioned in the getting started guide, I've done nothing else that could mess this up in the first place.
Update:
This is what I get when I run flutter doctor -v to have more info

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!

I'm not able to run any flutter app on my emulator (VSC & Android Studio)

So basically the problem is that I created a new flutter app, and the I opened the emulator(from android studio), and I clicked on run.
I had multiple problems that were related to heap memory and such, but I managed to solved most of then using all kind of methods from the internet.
I even deleted and installed Java and android studio multiple times, I changed the Enviromental Variables as the Internet suggested, but now, the current error that I get is this:
The Error Image
my flutter doctor -v:
flutter doctor -v image
I'm about to lose my mind, I'm on this issuse for a few weeks. please help me fix it
after your seggestion to add "gradle.properties" and adding "org.gradle.jvmargs=-Xmx1024m" to it (without the " "):
after
Perhaps you shoud add a line at end of file gradle.properties org.gradle.jvmargs=-Xmx1024m then clean the project, also validate cache and restart the android studio. It should works then.

Initializing Flutter. This may take a few minutes

first post (sorry for noobish post). I've searched Google and all over StackOverFlow to solve the above query on VSCode but to no avail anybody that can help solve this error I'd be really grateful!
It just keeps loading with the following message: Initializing Flutter. This may take a few minutes.
Issue of error
This seems to be a issue with the Flutter installation, please make sure to delete your Flutter folder (the one you downloaded from the GitHub repo) and follow
these instructions for your platform, step by step.
It seems like you was upgrading your flutter but due to some reason its not completely upgraded. I think you should try again to upgrade your flutter
Try running flutter in the terminal. If there are any flutter or dart upgrades pending, this will check them and finish those. Then run a flutter doctor, just to make sure everything is running fine.
If you run the the following lines in the CMD:
flutter channel dev
flutter upgrade
and it kept downloading till the message
Running pub upgrade...
then Close the CMD and for the message
"Initializing Flutter. This may take a few minutes"
Upgrading will actually take place in the Ide till it finishes
that's it :)
I thinks replace folder flutter with download new flutter version can cut off time initializing flutter.
I tired waiting initializing by "flutter upgrade"
It is due to flutter upgrade. flutter upgrade is for upgrading your existing version of flutter.
So, Don't worry. This will take 5-10 minutes to upgrade. After you will be getting the updated flutter upgrades.

Can't find recent announcement that the Flutter master branch can now enable flutter_web with command line operations

I should have bookmarked it, but the googles aren't being helpful.
There was a recent (past week or so) that the standard flutter command on the master branch can now eliminate the difference between Flutter and flutter_web repositories. This will be helpful for an upcoming demo.
Since the question is asking where the announcement link was, I bookmarked them. (Probably you don't need anymore though).
https://groups.google.com/forum/#!topic/flutter-announce/-LQPz3C3JAM
https://www.reddit.com/r/FlutterDev/comments/cl6cul/flutter_for_web_preview/
Edited:
I just tried the new approach and made some mistakes. So I would like to share more on this.
Steps at Flutter (Channel master, v1.9.1-pre.91):
First create a new project:
flutter create --web project
OR
$ flutter create project
$ cd project
$ flutter create --web .
Compile and Run the project with chrome (will launch chrome)
$ flutter run
That's all.
Another thing I found out: if you add the plugin which flutter web does not support, you can still pub get, compile successfully. The error will only happen when the unsupported code is triggered and then report some exceptions such as NoSuchMethodError: '<Unexpected Null Value>'.
Another Note: If you don't connect any mobile devices, flutter run by default will launch the chrome device. If you connect a mobile device, flutter run will pick the mobile device, compile and install it to your mobile device (at least it's the case in my env). So when you have both mobile and chrome devices, to launch the web case, simply execute flutter run -d chrome.
More links:
https://github.com/flutter/flutter/issues/34082
https://github.com/flutter/flutter/wiki/Building-a-web-application-with-Flutter

New Flutter project runs in command line but not VScode

I have recently reinstalled Flutter, Android SDK and VSCode.
I start the AVD emulator successfully.
I run Flutter Doctor from the Command line successfully.
I run Flutter create successfully.
I run Flutter run successfully, the basic App runs on the MyEm emulator.
I then open VSCode and at Line 43 there is an error
Invalid override.
The type of 'MyHomePage.createState' ('() → _MyHomePageState') isn't a subtype of 'StatefulWidget.createState' ('() → State<StatefulWidget>')
Can anyone help explain why this is happening?
I would better recommend you take a look on this link to create your first flutter app
and this link
I was having trouble to create my first app and it helped me to create my first flutter app.