Flutter doctor error - Android sdkmanager tool not found. Windows
Solution 1
I have just hit the same issue - my resolution was a little simpler:
Just like you, I have Android Studio installed, the key is to install Android SDK Command-line Tools, steps being:
- Open Android Studio
- Tools Menu, SDK Manager
- In the window that comes up there are inner panels, choose SDK Tools panel
- Tick Android SDK Command-line Tools
- Choose Apply button near the bottom of the window
At that point, you will be prompted to accept the SDK license and the command line tools will be installed. Your license issue should now be resolved.
FYI, the command line tools will add a new folder cmdline-tools
inside your SDK Folder. If you look in there cmdline-tools/latest/bin you will see sdkmanager - but your license issue should already be resolved.
Solution 2
Android toolchain - develop for Android devices
X cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
This error means your "Android SDK Command-line Tools are missing"
- Open Android Studio
- In the Menu bar , click Tools(4th last)
- choose SDK Tools panel
- Tick Android SDK Command-line Tools
- Click Apply at bottom of the window
IT WILL START DOWNLOADING the missing component
VOTE me UP if it helps you
Solution 3
Go to settings:
Go to the Android SDK:
Uncheck the command-line tools:
Check Show details and uncheck the Android command-line tools and then click on Apply then click OK.
Download this package from https://developer.android.com/studio and extract it. Then go to your android sdk location (C:\Users\Pooja\AppData\Local\Android\Sdk) and paste it with the name tools.
Then close and restart Android Studio and check for updates. After installing updates, close Android Studio.
Open the command line and enter:
flutter doctor --android-licenses
And, finally, press y
for accept.
All we be solved.
Solution 4
Open sdk manager from here
Navigate to the panel titled "SDK Tools"
Then, select **Android Sdk Command-line Tools
Note: If it's already checked then follow the process
- Uncheck
- Apply
- Re-check
- Apply
Solution 5
From https://flutter.dev/docs/get-started/install/windows :
Warning: In Android Studio 3.6 or later, you need to manually add the old version of the Android SDK Tools for Flutter to work. To do this:
Open the Android Studio SDK Manager
In the Android SDK tab, uncheck Hide Obsolete Packages
Check Android SDK Tools (Obsolete)
...
This is a known issue that will be addressed in an upcoming version of Flutter.
![Mark Perry](https://lh4.googleusercontent.com/-oUYLPZYdbFE/AAAAAAAAAAI/AAAAAAAAGr4/FUJaiI8epps/photo.jpg?sz=256)
Mark Perry
Updated on December 01, 2021Comments
-
Mark Perry over 2 years
I have been going round in circles with this issue, there are so many that people have issues similar to mine, but not one of them is the same. I am trying to get flutter fully set up, but can't resolve one of the issues.
When I run flutter doctor -v I get the following output:
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.657], locale en-GB) • Flutter version 1.12.13+hotfix.8 at C:\flutter • Framework revision 0b8abb4724 (3 weeks ago), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0 [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at C:\Users\%username%\AppData\Local\Android\Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) X Android license status unknown. Try re-installing or updating your Android SDK Manager. See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions. [√] Android Studio (version 3.6) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 43.0.2 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) [√] VS Code (version 1.42.1) • VS Code at C:\Users\%username%\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.8.1 [√] Connected device (1 available) • AOSP on IA Emulator • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 1 category.
And if I try to run the command flutter doctor --android-licenses I get:
Android sdkmanager tool not found (C:\Users%username%\AppData\Local\Android\Sdk\tools\bin\sdkmanager). Try re-installing or updating your Android SDK, visit https://flutter.dev/setup/#android-setup for detailed instructions.
And it's right, there is no "tools" folder in my SDK folder. How on earth do I fix that! I have installed all the SDK tools, even the NDK (not that flutter picks that up) I have tried creating a tools folder and copying sdkManager.bat (including the bin folder) from build-tools, but that just tells me to update my SDK manager, which when attempted just fails.
It looks like everything still works, it just makes me a little uncomfortable having that issue there.
Any help is much appreciated.
-
Alexandre Mucci over 4 yearsOn MacOs, installing Android Studio 3.6 or above creates a new path to sdkmanager that is not recognized by flutter. When you get to sdk folder, there is a new cmdline-tools folder and inside it you can find bin folder. But flutter was looking for "sdk/tools/bin". Downgrading to Android Studio 3.5.3 solved the problem. Thanks terence.
-
Cozzbie almost 4 yearsThis should be the correct answer. Asking people to downgrade is not an actual solution in this case IF it can work with the latest version of Android Studio.
-
lilbyrdie almost 4 yearsRecommend using the top rated answer and not this one.
-
lilbyrdie almost 4 yearsThis resolve the issue on Android Studio 4.0, too. Thanks!
-
navid over 3 yearsonly this way saved me. thank you. but the downloaded file should placed in (Local\Android\Sdk\cmdline-tools\latest).
-
Javier Gomez about 3 yearsSolution by Stx could be a better way to resolve this
-
Alvin John Niravukalayil about 3 yearsThank you so much bro. This is the best answer
-
John about 3 yearsThis is the best answer. If after going through the above process you still encounter any errors, configure your android sdk by typing the following commands in your terminal: 'flutter config --android-sdk <path-to/android/sdk>'. Locate your android sdk path and replace it in the command. Please type the command without the quotes.
-
Prabowo Murti almost 3 yearsIn OSX, the
sdkmanager
is located under/Users/[username]/Library/Android/sdk/cmdline-tools/latest/bin
-
Paul Jurczyk over 2 yearsfinally a solution...
-
Gitesh over 2 years@john 'flutter config --android-sdk <path-to/android/sdk>' works for me, Thanks !
-
Écio Silva over 2 yearsThese options (to check Command-line Tools and get it downloaded) is located in another place in my version of Android Studio (Arctic Fox, 2020.3.1 Patch 3): Android Studio Menu > Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools (tab). Then check Android SDK Command-line Tools (latest) and get it downloaded.
-
shapeshifter42 over 2 yearsWorks for me in Jan '22 on Windows. Only had to run Flutter Doctor again, nothing else.
-
Amir Hosseinzadeh over 2 yearsAfter this I run "flutter doctor --android-licenses"
-
WiRight over 2 yearsbig thx to you! you save my life! i've never seen output of flutter doctor command without issues!
-
Lecdi about 2 yearsI can't find the
SDK Tools
panel... It is not there within theTools
section. Also, I have already installed the command line tools into thecmdline-tools
folder manually, but I still get the error as there is no folder just calledtools
. What do I do now?! -
Lecdi about 2 years@ÉcioSilva Finally, something which actually helped me! I suppose the answers are for an older version of Android Studio.
-
Mizile about 2 yearsThis solution assumes everyone uses Android Studio