If you are here it means that you are facing a frustrating exception regarding Android licenses in Flutter.
More specifically the exception occurs when you try to run the following command:
$ flutter doctor --android-licenses
The easiest fix I found is to install the Android SDK Command-line Tools.