From 9aeedf1a2955d5a1705b6afed4f823ea2088eb2d Mon Sep 17 00:00:00 2001 From: Jan Mottl Date: Wed, 4 Mar 2026 13:29:48 +0100 Subject: [PATCH] Fix missing platform-tools --- CHANGELOG.MD | 5 +++++ Dockerfile | 1 + image-test.sh | 1 + 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 7faf4a9..2afd47b 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.0.1] - 2026-03-04 +### Fixed +- Fixed missing `platform-tools` in Android SDK installation. It turned out that AGP downloads them during build if missing +and since they do not change much and we probably don't even use them, it makes more sense to put them to the image. + ## [v3.0.0] - 2026-02-17 ### Changed - Complete rewrite of Dockerfile using multi-stage build architecture (separate stages for Java, Android SDK, Danger, Git LFS) diff --git a/Dockerfile b/Dockerfile index 197866c..6c3fcf6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -118,6 +118,7 @@ RUN mkdir -p "$CMDLINE_TOOLS_PATH" && \ # License is valid for all the standard components in versions installed from this file # Non-standard components: MIPS system images, preview versions, GDK (Google Glass) and Android Google TV require separate licenses, not accepted there RUN yes | sdkmanager --licenses +RUN sdkmanager "platform-tools" diff --git a/image-test.sh b/image-test.sh index 7a0cf34..814e5f4 100755 --- a/image-test.sh +++ b/image-test.sh @@ -83,6 +83,7 @@ check_command_exists "sdkmanager" check_dir_writable "$ANDROID_HOME" check_dir "$ANDROID_HOME/cmdline-tools" check_dir "$ANDROID_HOME/licenses" +check_dir "$ANDROID_HOME/platform-tools" check_command_exists "danger" check_command_exists "danger-kotlin"