fix: use released Android API 36 in CI

This commit is contained in:
bponders12-cell 2026-09-02 10:33:20 -04:00
parent 3857437d57
commit 96aa4756d6
1 changed files with 1 additions and 9 deletions

View File

@ -17,10 +17,7 @@ concurrency:
env:
FLUTTER_VERSION: '3.44.6'
JAVA_VERSION: '17'
ANDROID_COMPILE_SDK: '37'
# AGP 9.x uses 36.0.0 as its default build-tools revision; 37.0.0 is not a
# required SDK package for compiling against API 37 and may not be present
# in the runner's SDK repository yet.
ANDROID_COMPILE_SDK: '36'
ANDROID_BUILD_TOOLS: '36.0.0'
GRADLE_VERSION: '9.1.0'
@ -70,10 +67,6 @@ jobs:
SDKMANAGER="$(find "$SDKROOT/cmdline-tools" -type f -name sdkmanager -print -quit 2>/dev/null || true)"
test -x "$SDKMANAGER"
yes | "$SDKMANAGER" --licenses >/dev/null 2>&1 || true
# Refresh repository metadata before requesting API 37. The hosted
# runner can have an older cached package index even though API 37
# is available from the current Android SDK repository.
"$SDKMANAGER" --update >/dev/null 2>&1 || true
"$SDKMANAGER" --list | grep -F "platforms;android-${ANDROID_COMPILE_SDK}" >/dev/null
"$SDKMANAGER" "platform-tools" "platforms;android-${ANDROID_COMPILE_SDK}" "build-tools;${ANDROID_BUILD_TOOLS}"
yes | "$SDKMANAGER" --licenses >/dev/null 2>&1 || true
@ -177,7 +170,6 @@ jobs:
SDKMANAGER="$(find "$SDKROOT/cmdline-tools" -type f -name sdkmanager -print -quit 2>/dev/null || true)"
test -x "$SDKMANAGER"
yes | "$SDKMANAGER" --licenses >/dev/null 2>&1 || true
"$SDKMANAGER" --update >/dev/null 2>&1 || true
"$SDKMANAGER" --list | grep -F "platforms;android-${ANDROID_COMPILE_SDK}" >/dev/null
"$SDKMANAGER" "platform-tools" "platforms;android-${ANDROID_COMPILE_SDK}" "build-tools;${ANDROID_BUILD_TOOLS}"
yes | "$SDKMANAGER" --licenses >/dev/null 2>&1 || true