Checking the license for package Android SDK Platform 27 in /usr/local/android-sdk-linux/licenses
Warning: License for package Android SDK Platform 27 not accepted.
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ‘:splashActivity’.
You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 27].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
I am getting the same error.
My circle.yml looks like:
machine:
environment:
GRADLE_OPTS: ‘-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"’
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter “tools,android-27,build-tools-26.0.2,platform-tools,extra-android-m2repository,extra-google-m2repository,extra-google-google_play_services”
cache_directories:
- /usr/local/android-sdk-linux/platforms/android-27
- /usr/local/android-sdk-linux/build-tools/26.0.2
- /usr/local/android-sdk-linux/extras/android/m2repository
test:
override:
# run unit tests
- ./gradlew test --continue -PpreDexEnable=false
# Just run unit tests on circleci, for instrumentation testing we currently use Local device
- cp -r splashActivity/build/outputs $CIRCLE_ARTIFACTS