You are using the wrong flutter SDK . Too low information in your question. Make sure that you have the right path to flutter SDK in your IDE. Check that the flutter SDK directory has the appropriate structure, all needed files and cetera.
Read moreWhy is flutter doctor <UNK> Android licenses not working?
Generally, this kind of issue occurs when the user updated the android SDK, the licenses may have changed . Depending on how the user did the update you may or may not have been prompted to accept the changes, or maybe it just doesn’t save the fact that you did accept them in a way flutter can understand.
Read moreHow do I accept all android licenses flutter?
Run the command flutter doctor –android-licenses and accept all licenses. Run the command flutter doctor -v to check if the issue was solved.
Read moreHow do I fix Android SDK Manager not found?
[Solved] Android sdkmanager not found Error in Flutter
Read moreHow do I accept android licenses?
You can accept the license agreement by launching Android Studio, then going to: Help > Check for Updates … When you are installing updates, it’ll ask you to accept the license agreement.
Read moreHow do I accept android license for flutter?
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 more