Android SDK with Emulator OCI image
8.5K
Android SDK OCI image based on Docker image saschpe/android-sdk with pre-installed build-tools, latest command-line tools and JDK 17 (or later) as well as the Android Emulator.
The following JDK (horizontal axis) and Android SDK API level combinations are currently available:
| 11 | 17 | 21 | 22 | 23 | 25 | |
|---|---|---|---|---|---|---|
| 31 | ✅ | ✅ | ||||
| 32 | ✅ | ✅ | ✅ | ✅ | ||
| 33 | ✅ | ✅ | ✅ | ✅ | ||
| 34 | ✅ | ✅ | ✅ | ✅ | ✅ | |
| 35 | ✅ | ✅ | ✅ | ✅ | ||
| 37.2 | ✅ | ✅ | ✅ |
docker pull saschpe/android-emulator:37.2-jdk25.0.4_7
The emulator requires KVM acceleration for reasonable performance. Ensure the host supports KVM and pass the device to the container:
docker run -it --rm --device /dev/kvm saschpe/android-emulator:37.2-jdk25.0.4_7
For CI environments or other headless use-cases, you can start the emulator with -no-window:
docker run -it --rm --device /dev/kvm saschpe/android-emulator:37.2-jdk25.0.4_7 \
emulator -avd pixel -no-window -no-audio
FROM saschpe/android-emulator:37.2-jdk25.0.4_7
RUN android sdk install "cmake;3.31.5"
These scripts simplify various tasks related to container building and publishing:
./scripts/build --help
Copyright 2023-2026 Sascha Peilicke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Content type
Image
Digest
sha256:2f26671a7…
Size
1.6 GB
Last updated
2 days ago
docker pull saschpe/android-emulator:37.2-jdk21.0.12_8