When installing shared_preferences I get an error in the terminal that says 10 packages have newer versions incompatible with dependency constraints. Now I can’t save data. How do I fix it? thanks.
When installing shared_preferences I get an error in the terminal that says 10 packages have newer versions incompatible with dependency constraints. Now I can’t save data. How do I fix it? thanks.
2
Answers
Run the commands from your project root directory:
flutter pub outdated
flutter pub upgrade
orflutter pub upgrade --major-versions
This should solve the problem.
You can use
and
for reference go through this