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

Android SDK Build-Tools 24.0.2 license problem #6555

Closed
AlokBansal8 opened this issue Sep 2, 2016 · 16 comments
Closed

Android SDK Build-Tools 24.0.2 license problem #6555

AlokBansal8 opened this issue Sep 2, 2016 · 16 comments

Comments

@AlokBansal8
Copy link

  • What went wrong:
    A problem occurred configuring project ':lib-classes'.

    You have not accepted the license agreements of the following SDK components:

@BanzaiMan
Copy link
Contributor

Do you have a build log URL that shows the problem you are describing here?

@AlokBansal8
Copy link
Author

@BanzaiMan
Copy link
Contributor

It appears to have been fixed in https://travis-ci.org/AlokBansal8/UtilityClasses/builds/157195324.

@AlokBansal8
Copy link
Author

Yeah. Adding the following lines to .travis.yml file helped:

licenses:
    - 'android-sdk-preview-license-.+'
    - 'android-sdk-license-.+'
    - 'google-gdk-license-.+'

But my doubt was that the CI should have automatically accepted all the licenses. And I should not have to resort to this step.

@stephengroat
Copy link

I'm having a similar issue (https://travis-ci.org/stephengroat/ics-openvpn) but licenses didn't seem to fix it

@httpdigest
Copy link

httpdigest commented Nov 11, 2016

I'm also having this issue.
.travis.yml file and travis build log: https://gist.github.com/httpdigest/3a65fc9488b749037746ee2722abd81e

It complains:

* What went wrong:
A problem occurred configuring root project 'JOML'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 25, Android SDK Build-Tools 24.0.3].

I did as AlokBansal8 suggested, but it did not help.

@FlyingRadish
Copy link

@httpdigest Actually the log already told you what happen:Error: Ignoring unknown package filter 'build-tools-24.0.3'. The travis's sdk version is out of date, you need to add tools to upgrade sdk itself first. For your example, like this:

components:
    - tools
    - build-tools-24.0.3
    - android-25

@httpdigest
Copy link

httpdigest commented Dec 1, 2016

So, I take it that whenever one wants to use a newer build-tools version than what is already installed on the Travis CI build server, one needs to declare the tools component first? Or what is the purpose of the tools component; what does it do? I am asking because this documentation is lacking an explicit statement of why one needs tools and what it does. There is just one comment:

# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - platform-tools
# - tools

But then after that, the - build-tools-19.1.0 is added as well. So, does a project declaring both tools and build-tools-19.1.0 use the "newest" build tools or the 19.1.0 version?

The information about this is a bit vague.

@FlyingRadish
Copy link

The Android SDK Tools installed on Travis server only fetching https://dl-ssl.google.com/android/repository/repository-10.xml(you can check the log), however the Build-Tools 24.0.2 was in https://dl-ssl.google.com/android/repository/repository-11.xml.

yes I agree with you, the document should mention that what will happen if you don't use the latest revision of Android SDK Tools.

@GuillemRoca
Copy link

It may be the tools issue.

See this issue also for running on android-25: (travis-ci/docs-travis-ci-com#779)

Example:

android:
  components:
    - tools
    - platform-tools
    - tools

    - build-tools-25.0.1
    - android-25
    - extra-google-m2repository
    - extra-android-m2repository

barbeau added a commit to barbeau/android-maps-utils that referenced this issue Feb 24, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@jaredsburrows
Copy link

Since this has not been fixed, just using command line:

install:
  - echo y | android update sdk -u -a -t tools
  - echo y | android update sdk -u -a -t platform-tools
  - echo y | android update sdk -u -a -t build-tools-25.0.2
  - echo y | android update sdk -u -a -t android-25
  - echo y | android update sdk -u -a -t extra-google-m2repository
  - echo y | android update sdk -u -a -t extra-android-m2repository

@SailReal
Copy link

SailReal commented Mar 2, 2017

@jaredsburrows using command line is the only way it works for me, THANKS!

@danielpassos
Copy link

danielpassos commented Mar 14, 2017

I have the same problem for 25.0.3

@danielpassos
Copy link

I have fixed it adding a shell script file (.travis-android-license-bugfix.sh) with that content:

echo "$ANDROID_HOME"
mkdir "$ANDROID_HOME/licenses" || true
echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"

and calling it on my .travis.yml

before_install:
  - bash .travis-android-license-bugfix.sh

philipphager pushed a commit to philipphager/disclosure-android-app that referenced this issue Apr 2, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
kshoji added a commit to kshoji/BLE-HID-Peripheral-for-Android that referenced this issue Apr 5, 2017
@albodelu
Copy link

It's a good moment to migrate to sdkmanager and avdmanager, you can accept the license directly without workarounds as explained here:

  - echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
  - echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"

neteinstein added a commit to Mindera/skeletoid that referenced this issue Apr 12, 2017
neteinstein added a commit to Mindera/skeletoid that referenced this issue Apr 12, 2017
neteinstein added a commit to Mindera/skeletoid that referenced this issue Apr 13, 2017
* Added support for file logging sharing
Fixed travis licence problem: travis-ci/travis-ci#6555

* Fixed travis licence problem: travis-ci/travis-ci#6555
phodal added a commit to phodal/growth that referenced this issue May 18, 2017
alabeduarte added a commit to alabeduarte/mypodcasts-android that referenced this issue May 19, 2017
KevinGliewe added a commit to KevinGliewe/ARToolKit5AAR that referenced this issue Jun 21, 2017
mfrasca added a commit to Ghini/ghini.pocket that referenced this issue Aug 9, 2017
miankhalid added a commit to openedx-unsupported/edx-app-android that referenced this issue Oct 30, 2017
GuennisHueftgold added a commit to GuennisHueftgold/ManniSpotter that referenced this issue Dec 21, 2017
hasan-ahmed pushed a commit to karlogonzales/ministocks-390 that referenced this issue Mar 30, 2018
@stale
Copy link

stale bot commented Apr 13, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@stale stale bot added the stale label Apr 13, 2018
@stale stale bot closed this as completed Apr 14, 2018
njzjz added a commit to chemicaltools/chemicaltools-android that referenced this issue Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants