Skip to content

Accept ConstraintLayout licenses #6617

@SUPERCILEX

Description

@SUPERCILEX
Contributor

I keep getting the following error saying that Travis didn't accept the ConstraintLayout licenses:

A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
  [Solver for ConstraintLayout 1.0.0-alpha8, ConstraintLayout for Android 1.0.0-alpha8].
  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

Activity

BanzaiMan

BanzaiMan commented on Sep 19, 2016

@BanzaiMan
Contributor

Do you have a build log URL that shows the problem you are describing here? Are you listing licenses to accept? https://docs.travis-ci.com/user/languages/android#Dealing-with-Licenses

SUPERCILEX

SUPERCILEX commented on Sep 19, 2016

@SUPERCILEX
ContributorAuthor

This issues is documented in several places:
https://code.google.com/p/android/issues/detail?id=212128
http://kechengpuzi.com/q/s37615379
http://stackoverflow.com/questions/37615379/travis-ci-build-doesnt-work-with-android-constraint-layout

I can't find/don't know what licenses I need to add to my Travis build to make it compile.

SUPERCILEX

SUPERCILEX commented on Jan 24, 2017

@SUPERCILEX
ContributorAuthor

I forgot to update this issue, there's been a fix for a while now:

before_install:
  - mkdir "$ANDROID_HOME/licenses" || true
  - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
  - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
added a commit that references this issue on Feb 14, 2017
added a commit that references this issue on Mar 25, 2017
added a commit that references this issue on May 24, 2017
added a commit that references this issue on May 29, 2017

12 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @BanzaiMan@miankhalid@wolkenschieber@SUPERCILEX

        Issue actions

          Accept ConstraintLayout licenses · Issue #6617 · travis-ci/travis-ci