When you get a “version solving failed” error, how can you fix it?

Some useful tips:

  1. Use flutter pub upgrade, don’t change versions manually 💡
  2. Read the error logs 🧐
  3. Remove all version constraints 👻
  4. Update your Podfile 🍏
  5. Update the Android project settings 🤖
Fixing Version Solving Failed Errors

Some more details:

  1. flutter pub upgrade is your friend. It will try to resolve all dependencies without causing conflicts
  2. Be persistent. Inspect the error log closely and see if you can figure it out
  3. Remove version constraints from conflicting packages and try again
Fixing Version Solving Failed Errors

Here’s some more info about the flutter pub upgrade command:

If you need to update the Android project settings, this script may help:

Happy coding!