Member-only story

Old Flutter project not working since flutter upgrade? :(

Hamza Mateen
May 23, 2022

--

I was confused too. Just hang in there and keep reading!

The solution is simple. You have to edit two files:

  1. [your_project_folder]\android\app\build.gradle
  2. [your_project_folder]\android\build.gradle

[your_project_folder]\android\app\build.gradle

Update the compileSdkVersion from 30 to 31 as shown below.

Figure 1: compiledSdkVersion updated in app level build.gradle file

[your_project_folder]\android\build.gradle

Update ext.kotlin_version to 1.5.0 as shown in figure 2.

Figure 2: Kotlin version updated in project-level build.gradle file

Run and resolve if there are any errors related to your code. Otherwise, you are good to go!

Thank you for reading. Please support by leaving claps and sharing with your network.

Your support is appreciated!

Happy coding!

--

--

Hamza Mateen
Hamza Mateen

Written by Hamza Mateen

Front-End Development Lead at MiFinity | All about Flutter Application Development & Life in Ireland. Flutter App Developer | Lecturer | Writer.

No responses yet