follow these steps:
open SDK Managergo to SDK toolsInstall "Android sdk command line tool(latest)"
check it and apply and let the studio download the package once done run the command flutter doctor and it should now prompt you to run flutter doctor --android-licensesonce you run the license command accept all licenses by hitting y and it should solve the problem
This Will Solve The Issue-
IF the Issue Is Still There - follow these steps:
open SDK Managerunder SDK tools uncheck hide obsolete packages at the bottomthen you should see an option called "Android SDK Tools (Obsolete)"
check it and apply and let the studio download the package once done run the command flutter doctor and it should now prompt you to run flutter doctor --android-licensesonce you run the license command accept all licenses by hitting y and it should solve the problem