Comments (5)
Sure. We can think about several solutions:
Thanks Fabian :)
from androidsdk.
I would suggest the ARG way and then publish two different images like they do here: https://github.com/alvr/alpine-android.
from androidsdk.
Sounds good, so far no better alternative solution.
from androidsdk.
Done.
Now the default image is with JDK11, and the variant image android-sdk-jdk8
is with JDK8.
To pull the latest JDK11 image: docker pull thyrlian/android-sdk:7.0
.
Details can be found here.
from androidsdk.
README is updated as well:
Earlier in JDK 8, you need to set the environment variable _JAVA_OPTIONS to -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap. Then you'll see such logs like Picked up _JAVA_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap during any task execution, which means it takes effect. JDK 10 has introduced -XX:+UseContainerSupport which is enabled by default to improve the execution and configurability of Java running in Docker containers. Since JDK 1.8.0_191, -XX:+UseContainerSupport was also backported, then you don't need to set -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap any more. UseCGroupMemoryLimitForHeap was deprecated in JDK 10 and removed in JDK 11.
from androidsdk.
Related Issues (20)
- Q: Please help starting the emulator HOT 5
- Illegal redistribution of Android SDK HOT 1
- Use an error in the Jenkins Pipeline HOT 2
- android:text="@{`$` Packaging appears to become. ???? Abnormal display HOT 1
- Android app crashing before even showing the splash screen HOT 4
- The Android X framework has compatibility issues HOT 3
- Why do we need to remove X11 in watchdog.sh HOT 2
- Build images with GitHub Actions HOT 2
- [Improvement] Update Gradle and Kotlin version HOT 1
- 'WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested HOT 8
- [BUG] - Could not load the Qt platform plugin "xcb" in "/opt/android-sdk/emulator/lib64/qt/plugins" even though it was found. HOT 10
- [BUG] HOT 3
- [Enhancement] Clean up image space HOT 1
- pthread_create failed (EPERM) when running sdkmanager HOT 4
- Failed manual build image HOT 5
- [Requirement] Upgrade AGP 8.x and JDK 17 HOT 2
- Think over support JDK 20+ on your docker image ? HOT 2
- ARM64 image variant HOT 6
- [BUG] Could not load the Qt platform plugin "xcb" in "/opt/android-sdk/emulator/lib64/qt/plugins" HOT 2
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 androidsdk.