简体   繁体   中英

Why is the flutter command, “flutter run --release” not working?

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.

Did you try this?

flutter clean

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM