Android Sdk manager not found- Flutter doctor error
First, make sure to follow the official documentation step by step to install and set up Android SDK for Windows (Maybe uninstall first everything from before to remove any kind of conflict that exist). Also, don't install the Command line tools only
and include it to PATH
(Remove every related Android SDK PATH
or even other environment variables that are still there too). The recommended way is inside the Android Studio in Preferences -> Appearance & Behavior -> System Settings -> Android SDK -> SDK Tools
and select Android SDK Command-line Tools
.
Second, make sure you restart the command prompt for the changes to take effect. For example, changing PATH
doesn't update the running processes. So, just restart the ones that need the new configurations. Sometimes even restart the entire system so every process has the updated configurations.
And then try again to accept the licenses:
flutter doctor --android-licenses

Pragnya Sahu
Updated on January 05, 2023Comments
-
Pragnya Sahu 5 months
I installed flutter and it was working fine but after updating it to recent version, flutter is not able to find the android sdk manager. I've tried running flutter doctor and tried to install android licenses but the error "Android Sdkmanager not found is shown". I've attached the image of my command prompt here.
Here's what I've already tried but didn't worked...
- I had cmd tools installed in my android studio, so I uninstalled and reinstalled it.
- Changed path settings, added my sdk path to environment variables.
- Also added cmd tool path to system variables.
- Deleting the cmd tools and downloading it from android studio official site and pasting it into the sdk manager folder.
- Changing the sdk path to the sdk manager folder path in command prompt.
- Running command prompt as administrator.
I've attached the image of command prompt with 'flutter doctor -v' here
I've tried almost everything I found on google but nothing seems to solve my problem. I don't know what should I do next and I'm stuck in it from two days.
Here's the flutter doctor --android-licenses -v image
Please help, Thanks.
-
Hardik Mehta 11 monthsPlease checkout this link : fluttercampus.com/guide/201/…
-
Pragnya Sahu 11 monthsAlso tried this way, but didn't work.
-
Pragnya Sahu 11 monthsI've also reinstalled android studio and flutter, still the error continues.
-
Prashant 11 monthsCan you provide me with remote access to your system for understanding and debugging your issue
-
Prashant 11 monthsTry reinstalling Android Studio
-
Pragnya Sahu 11 monthsI did, Please check the image I've provided.
-
lepsch 11 monthsI've edited my answer. Could you please try that?
-
Pragnya Sahu 11 monthsI tried your way but the error remains the same.
-
Community 11 monthsYour answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.