Skip to content

Commit 4eaa43f

Browse files
runningcodeclaude
andcommitted
build(android): Build AGP matrix against compileSdk 37
The AGP compatibility matrix builds the UI test app against compileSdk 37 with older AGP versions (8.7.0/8.8.0/8.9.0). Those versions predate API 37: they neither auto-download platforms;android-37 (failing minifyReleaseWithR8 with "Failed to find Platform SDK") nor recognize the compileSdk (emitting an unsupported-compileSdk warning). Install the platform explicitly in the matrix workflow so the build can resolve it, and set android.suppressUnsupportedCompileSdk=37 to silence the warning across the Android builds. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d35a1d5 commit 4eaa43f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/agp-matrix.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ jobs:
7373
disk-size: 4096M
7474
script: echo "Generated AVD snapshot for caching."
7575

76+
# The AGP versions in this matrix predate compileSdk 37 and won't
77+
# auto-download the platform, so install it explicitly before building.
78+
- name: Install compileSdk platform
79+
run: echo "y" | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "platforms;android-37"
80+
7681
# Clean, build and release a test apk
7782
- name: Make assembleUiTests
7883
run: make assembleUiTests

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
1212
android.useAndroidX=true
1313
android.experimental.lint.version=8.13.1
1414

15+
# Let AGP versions that predate compileSdk 37 build against it instead of failing
16+
# to provision platforms;android-37 (needed by the AGP compatibility matrix)
17+
android.suppressUnsupportedCompileSdk=37
18+
1519
# Release information
1620
versionName=8.47.0
1721

0 commit comments

Comments
 (0)