You have not accepted the license agreements of the following SDK component

The above answer didn’t work on windows, but this did:

“%ANDROID_HOME%\tools\bin\sdkmanager” --update

NB: This prompted to accept the SDK license straight away, and the build worked from there.

6 Likes