From d4250691b403a8d5837bed431d86fe8dcb12c293 Mon Sep 17 00:00:00 2001 From: Lena Date: Wed, 1 Jul 2026 00:00:00 +0000 Subject: test-rig: pre-install AGP's build-tools 34 pin AGP 8.7 downloads build-tools;34.0.0 into the SDK at build time when it is missing, which made the first test run in a fresh image reach for the network. Bake it into the image. --- test-rig/Dockerfile | 4 +++- test-rig/sdk-packages.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test-rig/Dockerfile b/test-rig/Dockerfile index 759a09d..a9ffa23 100644 --- a/test-rig/Dockerfile +++ b/test-rig/Dockerfile @@ -1,7 +1,9 @@ # scrcpy-android test image. # -# Bundles JDK 17, Android cmdline-tools, platform 35, build-tools 35, +# Bundles JDK 17, Android cmdline-tools, platform 35, build-tools 34+35, # emulator, and an x86_64 default API-35 system image (for e2e). +# build-tools 34 is AGP 8.7's internal pin; pre-installing it keeps +# gradle from downloading it into the SDK at test time. # Project is mounted at /work; runs in --rm mode. FROM debian:bookworm-slim diff --git a/test-rig/sdk-packages.txt b/test-rig/sdk-packages.txt index 97ed4a6..8a7f0ff 100644 --- a/test-rig/sdk-packages.txt +++ b/test-rig/sdk-packages.txt @@ -1,5 +1,6 @@ platform-tools platforms;android-35 +build-tools;34.0.0 build-tools;35.0.0 emulator system-images;android-35;default;x86_64 -- cgit v1.2.3