Problemas de licença do Travis-CI Android SDK
Estou tentando criar meu projeto Android com Travis e atualmente estou recebendo um erro:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK
components:
[Android SDK Build-Tools 27.0.1].
Não sei como, mas ontem pude resolver um problema com isso:
before_install:
- yes | sdkmanager "platforms;android-27"
Mas agora isso não me ajuda. Serei grato por qualquer conselho.
Aqui está o URL de compilaçãohttps://travis-ci.org/madsunrise/luna-mobile/jobs/325034903 e também coloquei travis.yml abaixo
sudo: required
language: android
jdk: oraclejdk8
notifications:
email:
recipients:
- [email protected]
on_success: change
on_failure: always
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
before_install:
- yes | sdkmanager "platforms;android-27"
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
global:
- ANDROID_API=27
- ANDROID_BUILD_TOOLS=27.0.2
android:
components:
- tools
- tools # Running this twice get's the latest build tools
- platform-tools
- android-${ANDROID_API}
- build-tools-${ANDROID_BUILD_TOOLS}
- extra
script:
- ./gradlew clean test build