{"id":1251,"date":"2023-11-10T06:20:10","date_gmt":"2023-11-10T06:20:10","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=1251"},"modified":"2023-11-14T06:29:30","modified_gmt":"2023-11-14T06:29:30","slug":"flutter-error-fix-this-issue-by-adding-compilesdkversion-33","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/flutter-error-fix-this-issue-by-adding-compilesdkversion-33\/","title":{"rendered":"Flutter Error: Fix this issue by adding &#8230;compileSdkVersion 33"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"293\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-17-1024x293.png\" alt=\"\" class=\"wp-image-1252\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-17-1024x293.png 1024w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-17-300x86.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-17-768x220.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-17-850x243.png 850w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-17.png 1378w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Fix this issue by adding the following to C:\\&#8230;\\android\\app\\build.gradle:android {compileSdkVersion 33\u2026}<\/p>\n\n\n\n<p>Open the <code>android\/app\/build.gradle<\/code> file in your Flutter project<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Locate the <code>android<\/code> block, and within it, find the <code>compileSdkVersion<\/code> line.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-18-1024x429.png\" alt=\"\" class=\"wp-image-1253\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-18-1024x429.png 1024w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-18-300x126.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-18-768x322.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-18-1536x643.png 1536w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-18-850x356.png 850w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-18.png 1729w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The suggested version in the error message is 33, but you might need to use a different version based on the plugin requirements.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>android {\r\n    compileSdkVersion 33\r\n    \/\/ ... other configurations\r\n}\r\n<\/code><\/pre>\n\n\n\n<p>Save the changes to the file.<\/p>\n\n\n\n<p>After updating the <code>compileSdkVersion<\/code>, you should run command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flutter pub get\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fix this issue by adding the following to C:\\&#8230;\\android\\app\\build.gradle:android {compileSdkVersion 33\u2026} Open the android\/app\/build.gradle file in your Flutter project Locate the android block, and within it, find&#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":[499,501,498,229,497],"class_list":["post-1251","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-after-updating-the-compilesdkversion","tag-compilesdkversion","tag-fix-this-issue-by-adding","tag-flutter","tag-flutter-error-fix-this-issue-by-adding-compilesdkversion-33"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1251","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=1251"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1251\/revisions"}],"predecessor-version":[{"id":1254,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1251\/revisions\/1254"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=1251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=1251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=1251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}