Comments (10)
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.
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.
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.
@BrunoAgrizzi that didn't work for me, thanks anyway.
@jangrewe thank you for the update!
from gitlab-ci-android.
Looks like this has been fixed in June, but its still a problem now
https://issuetracker.google.com/issues/66465833
from gitlab-ci-android.
Currently today this problem persists! The sdkmanager don't accept --package_file flag:
Windows 10 Pro for Workstation, Celeron G1610 Dual Core, 8GB RAM DDR3, Android Studio and sdkmanager on last versions.
from gitlab-ci-android.
@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.
@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.
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.
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)
- [Suggestion] Gradle and NDK tool HOT 1
- update build-tools to 29.0.3 HOT 1
- Feature request: NDK support HOT 1
- Update build-tools to 30.0.0 HOT 3
- Replace ANDROID_HOME with ANDROID_SDK_ROOT HOT 1
- chmod: cannot access './gradlew': No such file or directory HOT 1
- Add NDK version HOT 1
- Java version error HOT 3
- OpenJDK11 and JaCoCo HOT 5
- Pass txt file to sdkmanager HOT 2
- Can not build app that uses RenderScript HOT 1
- error=7, Argument list too long
- NoClassDefFoundError HOT 1
- NDK support needed! HOT 1
- Could not find ANDROID_SDK_ROOT HOT 10
- Git HOT 2
- sdkmanager doesn't work due to JDK 11, needs 8
- Add supporting Android NDK HOT 3
- Release SDK 31 HOT 3
- bad interpreter: Permission denied HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-ci-android.