Giter Site home page Giter Site logo

Comments (10)

urmet avatar urmet commented on May 23, 2024 3

I just got bitten by that myself. Google knows about that and the fix is supposedly pending https://issuetracker.google.com/issues/66465833

Another workaround is to run the --package_file install step before --update. The download package has older non-broken sdkmanager before you run update.

from gitlab-ci-android.

jangrewe avatar jangrewe commented on May 23, 2024 1

I'm currently working on this, the --package_file doesn't work for me either, i'm now switching to just passing the list of packages as a string argument.

from gitlab-ci-android.

BrunoAgrizzi avatar BrunoAgrizzi commented on May 23, 2024

Hi @fgsalomon ,
In my case I put a variable with the file .txt in Dockerfile and add --verbose.

like this:

ENV ANDROID_PACKAGES_FILE packagesFile.txt

...

... ${ANDROID_HOME}/tools/bin/sdkmanager --verbose --package_file=${ANDROID_PACKAGES_FILE}

from gitlab-ci-android.

fgsalomon avatar fgsalomon commented on May 23, 2024

@BrunoAgrizzi that didn't work for me, thanks anyway.
@jangrewe thank you for the update!

from gitlab-ci-android.

dmastag avatar dmastag commented on May 23, 2024

Looks like this has been fixed in June, but its still a problem now

https://issuetracker.google.com/issues/66465833

from gitlab-ci-android.

 avatar commented on May 23, 2024

Currently today this problem persists! The sdkmanager don't accept --package_file flag:
screenshot_3

My text File:
screenshot_4

Windows 10 Pro for Workstation, Celeron G1610 Dual Core, 8GB RAM DDR3, Android Studio and sdkmanager on last versions.

from gitlab-ci-android.

dmastag avatar dmastag commented on May 23, 2024

@gittiago12 if you look closely at
https://developer.android.com/studio/#downloads

and
https://developer.android.com/studio/releases/sdk-tools

You will notice that Android has not updated the sdk manager since last year.

So I am doing it manually and line by line until Google updates it

sdkmanager "add-ons;addon-google_apis-google-24"
sdkmanager "add-ons;addon-google_apis-google-24"
sdkmanager "build-tools;28.0.3"
sdkmanager "extras;android;m2repository"
sdkmanager "extras;google;google_play_services"
sdkmanager "extras;google;m2repository"
sdkmanager "platform-tools"
sdkmanager "platforms;android-28"
sdkmanager "extras;google;instantapps"
sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"

from gitlab-ci-android.

jangrewe avatar jangrewe commented on May 23, 2024

@gittiago12 I'm not sure if this is the right place to complain about the package manager, as i'm also just a user, not the developer ;-)
If you have a look at my Dockerfile, i bypass this by passing the packages as string from the text file, instead of the text file itself:

RUN while read -r package; do PACKAGES="${PACKAGES}${package} "; done < /sdk/packages.txt && \
${ANDROID_HOME}/tools/bin/sdkmanager ${PACKAGES}

from gitlab-ci-android.

dmastag avatar dmastag commented on May 23, 2024

Not sure if this will help anyone, but it was working for me if I do

RUN while read -r package; do PACKAGES="${PACKAGES}${package} "; done < /sdk/packages.txt && yes | ${ANDROID_HOME}/tools/bin/sdkmanager ${PACKAGES}

Instead of what @jangrewe mentioned

from gitlab-ci-android.

jangrewe avatar jangrewe commented on May 23, 2024

You only need to pipe the output of yes to sdkmanager if you don't have the licenses, as having the licenses make the SDK Manager not even ask for input.
And as you can see from the images built on Docker Hub, piping yes is not needed if you do all the steps my Dockerfile does.

from gitlab-ci-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.