My Flutter Application was working fine, but suddenly it started giving this gradle issue in android studio.
i tried removing .pub_cache folder as well, along with removing build folder inside my application but still facing this issue when i am opening my flutter application in android studio
what is shared_preference_android here and how to fix this issue?
2
Answers
Quick fixes to try before doing anything drastic:
Try
flutter clean
and thenflutter pub get
.If that doesn’t work, you can try upgrading your Flutter SDK (not sure if you’d want to) like so:
flutter upgrade
.You can also run
flutter doctor
to see a list of possible issues with your code../gradlew clean
and./gradlew build
onyourproject/android
.flutter clean
andflutter pub get
onyourproject/lib
or try to useflutter doctor
to see issues.these two commands work properly to fix your machine bugs or your code bugs