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 moreCan’t find an option named platforms flutter?
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 more