Point Gradle at the SDK Bubblewrap uses

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 12:27:57 -07:00
co-authored by Claude Sonnet 5.5
parent ae05a6fd37
commit 12cd60829f
+2
View File
@@ -63,6 +63,8 @@ jobs:
SM=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager
yes | "$SM" --sdk_root="$SDK" --licenses >/dev/null || true # yes exits on SIGPIPE
"$SM" --sdk_root="$SDK" "build-tools;36.1.0" "platforms;android-36" >/dev/null
echo "ANDROID_HOME=$SDK" >> $GITHUB_ENV # the runner's own ANDROID_SDK_ROOT would conflict
echo "ANDROID_SDK_ROOT=$SDK" >> $GITHUB_ENV
npm install --global --ignore-scripts @bubblewrap/cli@1.25.0
mkdir -p ~/.bubblewrap
jq -n --arg jdk "$JAVA_HOME" --arg sdk "$SDK" '{jdkPath:$jdk,androidSdkPath:$sdk}' > ~/.bubblewrap/config.json