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 . Accept the license agreement and install the updates, and you are all set.
Read moreIs Android Studio free for commercial use?
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