Upgrade flutter in an unfinished project? - flutter

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?

Related

I get this error in my flutter app. migrate this app to the V2 embedding

I get this error in my Flutter Project,
C:\src\flutter\bin\flutter.bat --no-color pub get
Running "flutter pub get" in source_code... 34.3s
This app is using a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
The plugin firebase_core requires your app to be migrated to the Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration and re-run this command.
Process finished with exit code 1
Flutter Embedding Error
Since Flutter 1.12 the way how Flutter plugins communicate with the native Android side has been improved. Allowing plugins to better integrate with the native Android lifecycle.
Some plugins support both the new and the old structure, however many plugins (like firebase_core) dropped support for the legacy structure to ensure optimal integration with the Android system.
Apps created using Flutter 1.12 and higher automatically generate the correct Android integration logic, however Flutter applications created with an earlier version of Flutter need to be manually migrated. There are two options to fix this for your app:
The easiest solution is to delete the android folder in your project and let Flutter (using Flutter 1.12 or higher) recreate it for you by running the following command in the root folder of the Flutter project: flutter create --platform=android . (don't forget the . at the end of the command). You should only do this if you haven't made any custom changes to the Android code and of course make sure to make a backup first.
The more safe option is to manually migrate the Android project using the instructions provided on the GitHub Wiki page mentioned in the error message.
When following the instructions on the GitHub Wiki page make sure to keep an eye on all the details. Personally I forgot to update the <application android:name="MyApp" to the recommended <application android:name="${applicationName}" which resulted in the same error you are reporting.
What helped me was to create a new "dummy" application with the latest version of Flutter (for example flutter create --platforms=android test_app) and compare the files in the Android folder with the files of my current App and make changes where necessary.

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.

Flutter 'cannot find symbol'

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.

Flutter / Mac / AndroidStudio / Gradle / appbundle

I finally finished writing my application (Mac + AndroidStudio) and I only have green check on each of my files.
Finally ... I tried to launch the build appbundle by following the guidelines described on the Flutter website.
I have the impression to have done by Google .... I site the result on its search engine: Futter Beautful native apps in record time.
Ok for the beautiful native apps but for the record time ... it's only for writing?
Since I am not a pure coder, I can not build the appbundle. I spend my time doing research on the net and I see that I'm not the only one. Same on Stack Overflow.
Question (to you dear coder friends and possibly to them Google coders): Is there a clean and safe way to generate the appbundle?
(I had less trouble on my first app with xcode at the very beginning of the swift !!!)
Good luck to all. Thanks to Stack Overflow who sharing solutions ....
type flutter build appbundle in terminal in your project directory
sorry.
To precise :
Project flutter built with AndroidStudio on Mac OS Mojave.
All my Flutter files are validated in green in AndroidStudio.
I followed step by step the tutorial Flutter page to deploy my application to build the necessary file to Goole Play Store.
I only use url_launcher and flutter_localizations. The pubspec.yaml is up to date.
My app works great on my smartphone when I launch the app. from AndroidStudio.
Is it common that this is not enough for the launch of the build to be successful?

Add flutter web and desktop to existing flutter (android/ios) project in android studio

I know it maybe still early but I want to try and use full flutter existing cross-platform support in one project. Stability is not my main concern.
I have started a flutter project in android studio. Naturally I have (android/Ios) going smoothly. But I would love to add Web and desktop to the same project.
Please help me with and direction, or if there is solution any one has created however much experimental.
There is a migration guide for web here. I got it up and running on a very basic existing app.
Best way is to do it in a separate branch since it requires changing packages and I even deleted .packages and pubspec.lock files first. Then I ran pub get (not flutter packages get) to download the required packages and run some precompilers.