Search code examples
androidflutterflutter-doctor

I getting a error in flutter doctor cmd tools in ubuntu 21.04


I getting the following error in flutter doctor cmd tools, when I run the command flutter doctor in the terminal in ubuntu 21.04.

enter image description here

cmd Error

I tried to solve in ubuntu but my try is waste next what can I do Help Me guys.


Solution

  • The solution to this is to open Android Studio and go to SDK Manager, switch to the SDK Tools tab. enter image description here Check Android SDK Command-line Tools(latest) enter image description here Don't forget to add to your PATH the tools and platform-tools folder that is inside your SDK.

    Run flutter doctor to verify. You can also restart the Android studio.

    This should solve your problem will be solved.