{"id":1239,"date":"2023-11-11T06:33:59","date_gmt":"2023-11-11T06:33:59","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=1239"},"modified":"2023-11-11T06:34:00","modified_gmt":"2023-11-11T06:34:00","slug":"flutter-sdk-version-solving-failed","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/flutter-sdk-version-solving-failed\/","title":{"rendered":"Flutter: SDK Version solving failed"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"228\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-13-1024x228.png\" alt=\"\" class=\"wp-image-1242\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-13-1024x228.png 1024w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-13-300x67.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-13-768x171.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-13-850x189.png 850w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-13.png 1368w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The error message indicates that the  package depends on <code>flutter_lints<\/code> version 2.0.3 or higher, which in turn requires a Flutter SDK version between 2.19.0 and 4.0.0. Make sure you are using a Flutter SDK version that satisfies the constraints specified by <code>flutter_lints<\/code>. You can update your Flutter SDK by running: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flutter upgrade\r\n<\/code><\/pre>\n\n\n\n<p>After updating the Flutter SDK, try running <code>flutter pub get<\/code> again. This should attempt to resolve and fetch the correct versions of the dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flutter pub get\r\n<\/code><\/pre>\n\n\n\n<p>Ensure that your <code>pubspec.yaml<\/code> file specifies a compatible version of <code>flutter_lints<\/code>. It should look something like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dev_dependencies:\r\n  flutter_lints: ^2.0.3\r\n<\/code><\/pre>\n\n\n\n<p>Make sure the version range specified allows for a Flutter SDK version between 2.19.0 and 4.0.0. If your project has other dependencies, ensure that they are compatible with the Flutter SDK version you are using. <\/p>\n\n\n\n<p>If the issue persists, you can try temporarily downgrading the version of <code>flutter_lints<\/code> in your <code>pubspec.yaml<\/code> to a version that works with your current Flutter SDK. <\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dev_dependencies:\r\n  flutter_lints: ^2.0.0\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The error message indicates that the package depends on flutter_lints version 2.0.3 or higher, which in turn requires a Flutter SDK version between 2.19.0 and 4.0.0. Make&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[229,242,491,492],"class_list":["post-1239","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-flutter","tag-sdk","tag-sdk-version-solving-failed","tag-version-solving-failed"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/comments?post=1239"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1239\/revisions"}],"predecessor-version":[{"id":1243,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1239\/revisions\/1243"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=1239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=1239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=1239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}