Just install the sdk command line tool(latest) the below in android studio.
Then run:
flutter doctor --android-licenses
After which you should get:
coolcoders@myhost ~ % flutter doctor --android-licenses
5 of 7 SDK package licenses not accepted. 100% Computing updates...
Review licenses that have not been accepted (y/N)? y
…and then you’ll get a whole bunch of licenses to read whilst you sip your favourite beverage.