and type Y when needed to accept the licenses . Check it and apply and let the studio download the package. Once did run the command flutter doctor and it should now prompt you to run flutter doctor –android-licenses once you run the license command accept all licenses by hitting y and it should solve the problem.
Read moreHow do I accept the flutter doctor <UNK> android licenses?
Solution 1. Then select Android SDK Command-line tools & CMake then Apply . You should then be able to execute the command below without the elevated privileges and accept the licences. After choosing “yes” for all licenses, the android licenses are accepted.
Read more