“Failed to install the following Android SDK packages as some licences have not been accepted” error
You need to accept the licences before building. According to Android SDK docs you can use the following command depending on the sdkmanager location: Docs on –licenses option seems to be missing though. GNU/Linux Distributions: macOS: Windows: Flutter: