File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 3535 tool-cache : false
3636 large-packages : false
3737
38+ - name : Setup Android SDK
39+ uses : android-actions/setup-android@v3
40+
3841 # Check out the current repository
3942 - name : Checkout code
4043 uses : actions/checkout@v4
5053 distribution : temurin
5154 java-version : 17
5255
53- # Set up Android SDK (pre-installed on ubuntu-latest)
54- - name : Set up Android SDK
55- run : |
56- # Use ANDROID_HOME which is reliably set in GitHub Actions
57- export ANDROID_SDK_ROOT="${ANDROID_HOME:-/usr/local/lib/android/sdk}"
58- echo "ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT" >> $GITHUB_ENV
59- echo "Android SDK location: $ANDROID_SDK_ROOT"
60- ls -la $ANDROID_SDK_ROOT || echo "SDK directory not found at $ANDROID_SDK_ROOT"
61-
62- # Create local.properties with Android SDK location
63- - name : Create local.properties
64- run : |
65- echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties
66- cat local.properties
67- echo "Verifying SDK directory exists..."
68- test -d "$ANDROID_SDK_ROOT" && echo "✓ SDK directory exists" || echo "✗ SDK directory not found"
69-
7056 # Accept Android SDK licenses
7157 - name : Accept Android SDK licenses
7258 run : |
You can’t perform that action at this time.
0 commit comments