Android studio is free to download and use, even for enterprise use . However, if you would like to publish your app to the Google Play Store, it costs $25.
Read moreHow do I get my flutter doctor license?
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