javiersantos / android-ci

A docker image for building Android apps. Supports multiple SDK Build Tools.
MIT License
111 stars 40 forks source link

Assembling a build fails due to not licenses not being accepted #10

Closed carstenhag closed 5 years ago

carstenhag commented 5 years ago

Weirdly enough, some builds were fine with this image, but then since yesterday I am getting these errors. Any clue?

Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :app
Checking the license for package Android SDK Platform 28 in /sdk/licenses
Warning: License for package Android SDK Platform 28 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     platforms;android-28 Android SDK Platform 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

  Using Android SDK: /sdk

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
carstenhag commented 5 years ago

Nevermind, this is not an issue with this image.

See https://www.reddit.com/r/androiddev/comments/ahhvme/ci_issue_accepting_android_sdkmanager_licenses/