Skip to content

Commit d61ceb8

Browse files
abueideclaude
andcommitted
fix(e2e): add build-tools 30.0.3 and platform-tools hash override
Fixed two Android SDK issues: 1. **Build-tools version mismatch (Linux CI)**: - RN 0.72 (E2E-compat) requires build-tools 30.0.3 - Plugin default is 35.0.0 - Gradle fails with "SDK directory is not writable" when trying to auto-download - Added ANDROID_BUILD_TOOLS_VERSION="30.0.3" override in E2E-compat - Updated GRADLE_OPTS aapt2 path to match 2. **Platform-tools hash mismatch (macOS dev)**: - platform-tools_r37.0.0-darwin.zip hash has changed - Added hash-overrides.json with correct hash: 094a1395683c509fd4d48667da0d8b5ef4d42b2abfcd29f2e8149e2f989357c7 - Note: This only affects local macOS dev, not Linux CI Changes: - examples/E2E-compat/devbox.json: Add ANDROID_BUILD_TOOLS_VERSION - examples/E2E-compat/devbox.d/.../hash-overrides.json: New file with platform-tools hash Fixes: E2E Android (RN 0.72) timeout due to Gradle build failure Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e68e3fe commit d61ceb8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"https://dl.google.com/android/repository/platform-tools_r37.0.0-darwin.zip": "094a1395683c509fd4d48667da0d8b5ef4d42b2abfcd29f2e8149e2f989357c7"
3+
}

examples/E2E-compat/devbox.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
"ANDROID_APP_APK": "android/app/build/outputs/apk/release/app-release.apk",
1717
"ANDROID_MAX_API": "35",
1818
"ANDROID_SDK_REQUIRED": "0",
19+
"ANDROID_BUILD_TOOLS_VERSION": "30.0.3",
1920
"ANDROID_INCLUDE_NDK": "false",
2021
"ANDROID_INCLUDE_CMAKE": "false",
21-
"GRADLE_OPTS": "-Dorg.gradle.project.android.aapt2FromMavenOverride=$ANDROID_SDK_ROOT/build-tools/36.1.0/aapt2"
22+
"GRADLE_OPTS": "-Dorg.gradle.project.android.aapt2FromMavenOverride=$ANDROID_SDK_ROOT/build-tools/30.0.3/aapt2"
2223
},
2324
"shell": {
2425
"scripts": {

0 commit comments

Comments
 (0)