android sdk packages as some licences have not been accepted ubutu code example
Example 1: Failed to install the following Android SDK packages as some licences have not been accepted.
export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home
yes | ~/Library/Android/sdk/tools/bin/sdkmanager --licenses
%ANDROID_HOME%/tools/bin/sdkmanager --licenses
yes | ~/Android/Sdk/tools/bin/sdkmanager --licenses
Example 2: Failed to install the following Android SDK packages as some licences have not been accepted.
> flutter doctor --android-licenses