machine:
    java:
        version: oraclejdk8

machine:
    environment:
      - ANDROID_SDK: $HOME/.android
      - ANDROID_HOME: $HOME/.android
    pre:
      - mkdir -p "$ANDROID_SDK/licenses"
      - echo -e "\nd56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_SDK/licenses/android-sdk-license"
    java:
        version: oraclejdk8

Fix Android SDK license in Circle CI
Fix Android SDK license in Circle CI
