{"id":2118,"date":"2024-07-28T12:00:09","date_gmt":"2024-07-28T12:00:09","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=2118"},"modified":"2025-07-24T02:30:55","modified_gmt":"2025-07-24T02:30:55","slug":"error-flutter-doctor-android-licenses","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/error-flutter-doctor-android-licenses\/","title":{"rendered":"Error: flutter doctor &#8211;android-licenses"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"193\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2024\/07\/image-5-1024x193.png\" alt=\"\" class=\"wp-image-2119\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2024\/07\/image-5-1024x193.png 1024w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2024\/07\/image-5-300x57.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2024\/07\/image-5-768x145.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2024\/07\/image-5.png 1520w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Error Description<\/h2>\n\n\n\n<p>This error indicates that the version of the Java Runtime Environment you are using is too old to recognize the class file version of the <code>SdkManagerCli<\/code>. This is a common issue when newer versions of tools require updated Java versions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution:<\/h2>\n\n\n\n<p><strong>Install Android SDK Command-line Tools 8.0:<\/strong><\/p>\n\n\n\n<p>Open Android Studio. Navigate to <code>Tools<\/code> > <code>SDK Manager<\/code>. In the SDK Manager, select the <code>SDK Tools<\/code> tab. Check the box for <code>Android SDK Command-line Tools (latest)<\/code>. Click on the checkbox next to the <code>Show Package Details<\/code> at the bottom right. You should see a list of versions for the <code>Android SDK Command-line Tools<\/code>. Look for version 8.0 and select it. Apply the changes and install the selected version.<\/p>\n\n\n\n<p><strong>Navigate to the cmdline-tools Folder:<\/strong><\/p>\n\n\n\n<p>Open Windows Explorer. Navigate to the folder where the Android SDK is installed. This is typically located at<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\&lt;USER_NAME>\\AppData\\Local\\Android\\Sdk\\cmdline-tools\n<\/code><\/pre>\n\n\n\n<p>Replace <code>&lt;USER_NAME><\/code> with your actual Windows username.<\/p>\n\n\n\n<p><strong>Rename the Folder:<\/strong><\/p>\n\n\n\n<p>Locate the folder named <code>8.0<\/code>.Right-click on the folder and select <code>Rename<\/code>. Rename the folder to <code>latest<\/code>.<\/p>\n\n\n\n<p><strong>Run Flutter Doctor:<\/strong><\/p>\n\n\n\n<p>Open a terminal or command prompt. Run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flutter doctor --android-licenses\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Error Description This error indicates that the version of the Java Runtime Environment you are using is too old to recognize the class file version of the&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1839,1595],"tags":[],"class_list":["post-2118","post","type-post","status-publish","format-standard","hentry","category-android","category-flutter"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/2118","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=2118"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions"}],"predecessor-version":[{"id":2121,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions\/2121"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=2118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=2118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}