The error “Error: sdkmanager.bat not found” when running flutter doctor
indicates that the Android SDK Manager tool, specifically the sdkmanager.bat
file, is not being found by the Flutter toolchain.
However, recent Android Studio treats sdk manager as an Obsolete Package.
Go to SDK Tools tab in the Android Settings, uncheck the property "Hide Obsolete Packages". You would be able to see the item "Android SDK Tools" that has been marked as Obsolete.
You may want to select both "Android SDK Command-line Tools" and "Android SDK Tools" (in case you need it later on).
Confirm Change.
Wait for the process to be completed.
Done.
Error: ! Some Android licenses not accepted.
Run command to accept the license.
You may type N to skip reviewing the licenses.
Run flutter doctor again.