1

I have built an application using sharedpreferences so i could track who is logged in and logged out the app, but some reason, when i run the command "flutter run --release" it is giving off this error, I know one of them is referring directly to how I am using SharedPreferences, but I don't know how to fix it. Could some please help me?

Image of the error being displayed in my console.

2 Answers2

1

Did you try this?

flutter clean

then try this your command. If the problem isn't solved let me know

NiiLx
  • 606
  • 7
  • 18
0

First run android folder in your project with android studio and sync it.

And try to change the compileSdkVersion to: compileSdkVersion 28 or upper

And to get more information you can see this posts : this a,d this

Cyrus the Great
  • 5,145
  • 5
  • 68
  • 149