A mismatch between the Dart SDK version installed on your machine and the version indicated in your pubspec.yaml file is usually the cause of the error “Flutter pub get version solving failed”.
You must change the Dart SDK version in your pubspec.yaml file to correspond with the version that is installed on your computer in order to fix this problem. Entering dart –version into your terminal will provide the version of the Dart SDK.
This is how your pubspec.yaml file should appear:
On your system 23, replace 2.12.0 with the version of the Dart SDK that is installed.
Try running flutter clean and then flutter pub get again if the issue still doesn’t go away. This will clear the build cache on your system and reload the packages 3.
Additionally, confirm that the flutter pub get command is being executed from your project directory rather than the flutter/bin directory.
Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow
Experienced software developer proficient in HTML, CSS, and Bootstrap for crafting elegant and responsive user interfaces.
Skilled in Laravel and PHP, with a focus on building robust and scalable web applications.
Proficient in JavaScript for both frontend and backend development, leveraging frameworks like React and Vue.js.
Experienced in designing and consuming RESTful APIs to enable seamless communication between client and server.
Expertise in integrating payment gateways such as PayPal, Stripe, and Paytm for secure online transactions.
Familiar with Flutter, enabling the creation of natively compiled applications for mobile, web, and desktop.
Proficient in Android Studio, the primary IDE for developing Android applications.
Knowledgeable in Linux and Docker for efficient server management and application deployment.
Experienced in using Redis as an in-memory data structure store, enhancing application performance.
Passionate about staying updated with the latest technologies and continuously learning to deliver high-quality solutions.