{"id":726,"date":"2023-07-20T09:36:49","date_gmt":"2023-07-20T09:36:49","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=726"},"modified":"2023-07-20T09:36:51","modified_gmt":"2023-07-20T09:36:51","slug":"flutter-error-cmdline-tools-component-is-missing","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/flutter-error-cmdline-tools-component-is-missing\/","title":{"rendered":"Flutter error: cmdline-tools component is missing"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"103\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-7-1024x103.png\" alt=\"\" class=\"wp-image-727\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-7-1024x103.png 1024w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-7-300x30.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-7-768x78.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-7-850x86.png 850w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-7.png 1495w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I am getting error &#8220;cmdline-tools component is missing&#8221; after installing Flutter and Android Studio\u2026 I added the Android SDK.<\/p>\n\n\n\n<p>The solution for me was opening Android Studio and going to\u00a0<em>SDK Manager<\/em>, switch to the\u00a0<em>SDK Tools<\/em>\u00a0tab and check\u00a0<em>Android SDK Command-line Tools (latest)<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"475\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-8.png\" alt=\"\" class=\"wp-image-728\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-8.png 970w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-8-300x147.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-8-768x376.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-8-850x416.png 850w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>OR<\/p>\n\n\n\n<p>Open your command-line interface or terminal on your computer.<\/p>\n\n\n\n<p>Navigate to the directory where your Android SDK is installed. The path could vary depending on your operating system and how you installed the SDK.<\/p>\n\n\n\n<p>Once you&#8217;re in the SDK directory, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>path\/to\/sdkmanager --install \"cmdline-tools;latest\"\r\n<\/code><\/pre>\n\n\n\n<p>Make sure to replace <code>path\/to\/sdkmanager<\/code> with the correct path to the <code>sdkmanager<\/code> executable on your system.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>The <code>sdkmanager<\/code> command will download and install the latest version of the <code>cmdline-tools<\/code> component.<\/li>\n\n\n\n<li>After the installation is complete, you should have the necessary <code>cmdline-tools<\/code> component available on your system.<\/li>\n\n\n\n<li>Verify the installation by running the <code>sdkmanager<\/code> command without any parameters. This will display a list of available packages, and you should see <code>cmdline-tools<\/code> in the list.<\/li>\n<\/ol>\n\n\n\n<p>Remember that you might need administrative privileges or superuser access to install the component, depending on your operating system and SDK installation location.<\/p>\n\n\n\n<p>Once you have installed the <code>cmdline-tools<\/code> component, you should be able to use Android SDK tools from the command line as expected. For more information and details on using the command-line tools, you can refer to the official Android Developer documentation at <a href=\"https:\/\/developer.android.com\/studio\/command-line\">https:\/\/developer.android.com\/studio\/command-line<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am getting error &#8220;cmdline-tools component is missing&#8221; after installing Flutter and Android Studio\u2026 I added the Android SDK. The solution for me was opening Android Studio&#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":[],"class_list":["post-726","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/726","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=726"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/726\/revisions"}],"predecessor-version":[{"id":729,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/726\/revisions\/729"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}