Failed install the following Android SDK packages as some license not been accepted

android sdk r24.4.1

Posted by Dongyupu on June 3, 2020

错误日志

Failed install the following Android SDK packages as some license not been accepted
    build-tools:29.0.2 Android SDK Build-Tools 29.0.2

老版本有sdkmanager的解决方法

./sdkmanager "build-tools:29.0.2"

没有sdkmanager的解决方法

android update sdk --no-ui --all --filter build-tools:29.0.2