I'm trying to build android project using Travis using android-28
and build-tools-28.0.0
but no matter what I do I get
>Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-28 Android SDK Platform 28
build-tools;28.0.0 Android SDK Build-Tools 28
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
during compiling.
I've tried:
- adding:
components: - build-tools-28.0.0 - android-28
- installing through:
echo y | android update sdk --no-ui --filter build-tools-28.0.0,android-28,extra-android-m2repository
- accepting licenses using:
yes | sudo $ANDROID_HOME/tools/bin/sdkmanager --licenses
- accepting licenses using:
licenses: - 'android-sdk-preview-license-52d11cd2' - 'android-sdk-license-.+' - 'google-gdk-license-.+'
- even manually writing to file inside
$ANDROID_SDK/licenses
.
I'm pretty sure that 2 weeks ago it was working completely normal, but now it just throwing this error everytime.
PR in question so you can look at errors, builds and files.