SDK prevents `Hot Reload` & `Hot Restart` from working - flutter

When using the Here SDK for Flutter Hot Reload & Hot Restart stop working. I can tell this because when I switch to another branch which doesn't use the HERE SDK these two features work as supposed.
Within the HERE SDK integration branch these tasks will run endlessly. This makes the SDK practically unusable as recompiling takes too long for a smooth developer experience.
I can force a Hot Restart by moving the HERE map with my fingers. Something within the SDK is preventing this essential Flutter feature from working. Is there something I've overseen?
My SDK version is "HERE SDK for Flutter (explore Edition) - Version 4.3.2.0"

Related

Upgrade flutter in an unfinished project?

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 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.

Switch between Flutter web and flutter mobile development in VS Code

So I have 2 different projects in my visual studio code, for flutter web development and mobile development ...
I see the tutorial if want to make flutter web must switch "flutter channel master", but when I switch it to master my mobile project got an error.
So my problem is every time I want to switch projects between I must change channels to master for web and stable for mobile?
is there any way to do it without switching channels? thanks sir!
That tutorial is old (in Flutter terms).
Flutter is in active development and rapidly growing. Features that where experimental and then beta become releases in the stable branch quite fast if you are used to other languages and frameworks.
Development for the web has been in the Stable branch for about a year now.
You can just use stable for both mobile and web applications.

Android Studio: should I upgrade to Android embedding v2?

I am actively learning dart/flutter, and using Android Studio. Just practicing to learn as much dart as possible. For now, I manly test my code by outputting into console. When I run the code, I get the warning message below (about upgrading to Android embedding v2), see picture. For now, I am not interested in developing apps for Android nor IOS, I am focusing mainly on web apps.
Is the warning below something I should consider upgrading now to Android embedding v2? Or can it wait until I decide to start testing Android apps?
The main reason why I didn't upgrade, it's because I read the Android embedding v2 upgrade instructions, and it requires to edit some files, and I don't want to risk messing up Android Studio, nor Dart, nor Flutter files. Also, this is the first time I use this IDE.
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at
https://flutter.dev/go/android-project-migration
to migrate your project.

How to hot reload on both ios and android devices at the same time using IntelliJ IDEA?

I'm using IntelliJ IDEA to code Flutter and usually have 2 simulators running (ios and android). It is kinda annoying when I have to switch the target device manually when I update the code.
Any plugin that can do the trick for IntelliJ IDEA
~As I know, this feature only supported in Visual Studio Code~
Please check https://github.com/flutter/flutter/wiki/Multi-device-debugging-in-VS-Code
Updated Genchi Genbutsu
It possible to do with console commands
Flutter Hot Reload to multiple devices