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.
Related
I am working on a project and as I run the project there is a log that tells me to upgrade my current flutter version. I then upgrade my flutter version and then after that the app became laggy.
My question is, is it recommendable to not update flutter version when you are working on an unfinished project and then update the flutter version after the project is finished?
Thank you for your time on answering. Cheers.
It's not necessary to halt flutter sdk updates while building. Sometimes some packages may cause issues to not build or show warnings, but it is not common for apps to slow down after updating. Flutter sdk will not be the problem. Is the app smooth after using flutter downgrade?
And please provide more information regarding this,
Is it the same for all devices?
Have you tried flutter clean?
I started getting this error immediately I ran flutter pub upgrade, I have tried the solutions here but it is not working for me, I have also ran
Flutter clean
Flutter pub get
Deleted and install new flutter
any help will be really appreciated
NOTE I'm using an M1 Pro MacBook.
Yes its most probably you are using a package that is not yet compatible or does not match with required compileSdk version.
To identify which package is causing the issue, maybe you can try to revert your pubspec to when it was working and upgrade your packages one by one.
I'm also using M1 Macbook, so if you need further help, let me know.
Try this,
from top menu bar select Tools -> Flutter -> Flutter clean
Open pubspec.yaml & execute pub get & run again your code
Thanks guys for your help, I have finally solved the error from the accepted answer here
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
the dart path is correct, the environment variable also fine but I can not figure what went wrong, I can not create or run flutter projects. I don't know what is the is please help me figure out this.
There could be chances that you've installed a Flutter before and Flutter took parts of the old version to initialize. Here is a related GitHub post.
Usually a workaround here is to remove or delete flutter_tools.stamp.
rm FLUTTER_ROOT/bin/cache/flutter_tools.stamp
But for most, replacing the existing Flutter SDK with the new one from the Flutter website works like charm.
What can I do to fix this issue, when trying to debug on android phone OR emulator?
http://prntscr.com/pp43k4
Ive tried reinstalling whole flutter, and still the same issue.
the project is on flutter version 1.7.8. Tried going to latest versions, still the same.
Try running flutter clean to clear the build artifacts - If the project was copied from another computer, or if you were using different version of flutter, that could help.