If you see this error when you run flutter doctor then please follow the below steps to fix it.
1) Open Android Studio.
2) Go to tools -> SDK Manager.
3) Go to SDK Tools tab.
4) Check Android SDK Command-Line tools (latest).
5) Apply and Click Ok.
It will download a few files from the internet and then click on Finish.
Head back to CMD and run flutter doctor to see that the issue is resolved.