Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept ConstraintLayout licenses #6617

Closed
SUPERCILEX opened this issue Sep 19, 2016 · 5 comments
Closed

Accept ConstraintLayout licenses #6617

SUPERCILEX opened this issue Sep 19, 2016 · 5 comments
Labels

Comments

@SUPERCILEX
Copy link
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
@BanzaiMan
Copy link
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
Copy link
Contributor Author

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
Copy link
Contributor Author

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"

mg6maciej added a commit to mg6maciej/fluffy-octo-rotary-phone that referenced this issue Feb 14, 2017
sergiormg added a commit to sergiormg/ToolbarFromFragment that referenced this issue Mar 25, 2017
f8full added a commit to ludoscity/ludOScity that referenced this issue Mar 27, 2017
Thunderbottom added a commit to Thunderbottom/PCSCS that referenced this issue Apr 5, 2017
s-kostyuk added a commit to dot-cat/creative_assistant_android that referenced this issue May 5, 2017
s-kostyuk added a commit to dot-cat/creative_assistant_android that referenced this issue May 5, 2017
In short: fixed missing dependencies and not-accepted licenses.

* Updated build tools according to 6804a38

* Added extra-android-support for ConstraintLayout

* [Testing] Disabled emulator, build only

* OK. Debugging

* Revert "OK. Debugging"

This reverts commit 70b6ab9.

* Playing with licenses

Source: travis-ci/travis-ci#6617 (comment)

* Revert "[Testing] Disabled emulator, build only"

This reverts commit 60267ff.
Polpetta added a commit to Augugrumi/ghioca that referenced this issue May 24, 2017
tallnato added a commit to YouClap/RxFacebook that referenced this issue May 29, 2017
skytreader added a commit to skytreader/museician that referenced this issue Aug 19, 2017
TakWolf added a commit to TakWolf/Android-HeaderAndFooterRecyclerView that referenced this issue Sep 12, 2017
miankhalid added a commit to openedx/edx-app-android that referenced this issue Oct 30, 2017
jeancharles-roger added a commit to jeancharles-roger/SportTimerAndroid that referenced this issue Nov 2, 2017
@wolkenschieber
Copy link

wolkenschieber commented Nov 10, 2017

According to documentation all license should be accepted per default. Travis doesn't do that for ConstraintLayout. Also manually setting the license hash results in a failing build.

Above comments also strugle with the setup as commits are marked with a red cross.

@miankhalid
Copy link

miankhalid commented Mar 1, 2018

All solutions mentioned here are failing other than the one that @wolkenschieber mentioned. Thanks alot for the fix, finally my builds are running 😄

PR Link: openedx/edx-app-android#1065 which includes the fix (Exact commit openedx/edx-app-android@fe06b43)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants