How i solve issues with 3.27 updates in my project?

Hey Flutter devs! :wave:

I wanted to open up a discussion about managing Flutter versions efficiently, especially when working across multiple projects. Have you guys tried FVM (Flutter Version Manager) before?

Let me share my recent experience:

I decided to update Flutter to the latest version to explore new updates, but that’s when the chaos started. :sweat:

  1. First, I faced compatibility issues with Gradle and Android tools.
  2. After fixing Gradle, another issue showed up with Agora SDK, and at that point, it felt like I was starring in an action movie fighting bugs left and right! :clapper::boom:

It got me thinking, “There has to be a better way to manage Flutter versions!” That’s when I revisited FVM, and honestly, it was a game-changer.

What is FVM?

FVM (Flutter Version Manager) lets you:

  • Manage multiple Flutter versions easily.
  • Assign a specific Flutter version to each project.
  • Seamlessly switch between versions with a single command.

Why I Recommend FVM

  1. Saves Time: No more installing/uninstalling Flutter versions. Each project runs on its defined version without conflicts.
  2. Flexibility: Need Flutter 2 for one project and Flutter 3 for another? FVM handles it effortlessly. :sparkles:
  3. Easy Switching: Switching versions is as simple as running a single command.

Getting Started with FVM (Quick Steps):

  1. Install FVM:
dart pub global activate fvm  
  1. Install the desired version:
fvm install VERSION  
  1. Set the version for your project:
fvm use VERSION  
  1. Replace your flutter run command with:
fvm flutter run  

5.Tip for VSCode users*: Just restart the terminal, and flutter run will use the correct version automatically.

What about you guys?

  • How do you manage different Flutter versions across projects?
  • Have you faced similar issues when updating Flutter or handling SDK conflicts?
  • Any tips or tricks you’ve discovered while using FVM?

Let’s share experiences, best practices, and help each other! :rocket:
For those curious, here’s the official FVM documentation: https://fvm.app/.

Looking forward to hearing your thoughts and experiences! :bird::sparkles:

4 Likes

You could also consider https://puro.dev/ for that.

Edit: @RandalSchwartz made a video about this: https://youtu.be/olqmK-opexA

3 Likes