'Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this
I was following a tutorial to install an android emulator, without android studio, and I was told to run the command- flutter doctor. Upon running this, I got this error-
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
So I tried running flutter doctor --android-licenses, and I got this error-
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to
resolve this.
This is my ANDROID_HOME directory-
And Inside platforms, I have android-32 installed.
I saw some fixes for this, but those were all with android studio. How do I fix this? Thanks in advance!
Solution 1:[1]
- Open Android Studio
- Open Preferences
- Appearances tab on the left
- System Settings
- Android SDKenter image description here
- Click Show Package details
- Toggle SDK Tools
- Apply and restart Android Studio
- Run flutter doctor
Solution 2:[2]
If you are using Android Studio:
- Open Android Studio
- Goto
File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK(Screenshot attached below)

3. Update/Install Android Studio Command-line Tools.
4. Click apply and restart android studio.
Solution 3:[3]
Open the Android Studio. Then click on the
New Options. There you can see a dropdown to navigate intoSDK manager.In the system settings open the
Android SDK, then open theSDK Tool Kitoptions. Then check theAndroid SDK command-line Tools(latest)Restart the Android Studio and run the command
flutter doctor --android-licenses
Solution 4:[4]
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.
Solution 5:[5]
I think you need to install cmdLine
please run flutter doctor and share cmd results to help better
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ArvinT |
| Solution 2 | codingwithtashi |
| Solution 3 | Preet Sangha |
| Solution 4 | Anoo Edition |
| Solution 5 | Vahid Mohtasham |

