I'm trying to build my Android project with Travis and currently I'm getting error:
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].
I don't know how, but yesterday I could solve problem with that:
before_install:
    - yes | sdkmanager "platforms;android-27"
But now it doesn't help me. I will be grateful for any advice.
Here is build URL https://travis-ci.org/madsunrise/luna-mobile/jobs/325034903 and also I put travis.yml below
sudo: required
language: android
jdk: oraclejdk8
notifications:
  email:
    recipients:
      - rudnev.vanya@gmail.com
    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
 
    