@@ -432,13 +432,32 @@ jobs:
432432 restore-keys : |
433433 ${{ runner.os }}-android-build-${{ env.ANDROID_API_LEVEL }}-
434434
435+ - name : Debug environment before Gradle
436+ if : steps.android-build-cache.outputs.cache-hit != 'true'
437+ working-directory : example/android
438+ run : |
439+ echo "=== PATH ==="
440+ echo "$PATH" | tr ':' '\n'
441+ echo "=== which npx ==="
442+ which npx || echo "npx NOT FOUND in PATH"
443+ echo "=== which node ==="
444+ which node || echo "node NOT FOUND in PATH"
445+ echo "=== npx version ==="
446+ npx --version || echo "npx failed"
447+ echo "=== node_modules/.bin contents ==="
448+ ls ../node_modules/.bin/ | head -20 || echo "no node_modules/.bin"
449+ echo "=== disk space ==="
450+ df -h / | tail -1
451+ echo "=== node_modules exists ==="
452+ ls -d ../node_modules/ && echo "yes" || echo "NO - node_modules missing!"
453+
435454 - name : Build Android app
436455 if : steps.android-build-cache.outputs.cache-hit != 'true'
437456 working-directory : example/android
438457 env :
439458 JAVA_OPTS : " -XX:MaxHeapSize=6g"
440459 run : |
441- ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=x86_64
460+ ./gradlew assembleDebug --no-daemon --console=plain --stacktrace - PreactNativeArchitectures=x86_64
442461
443462 - name : Save Android build cache
444463 if : steps.android-build-cache.outputs.cache-hit != 'true'
@@ -627,13 +646,28 @@ jobs:
627646 restore-keys : |
628647 ${{ runner.os }}-android-legacy-build-${{ env.ANDROID_API_LEVEL }}-
629648
649+ - name : Debug environment before Gradle (legacy)
650+ if : steps.android-build-cache.outputs.cache-hit != 'true'
651+ working-directory : example/android
652+ run : |
653+ echo "=== PATH ==="
654+ echo "$PATH" | tr ':' '\n'
655+ echo "=== which npx ==="
656+ which npx || echo "npx NOT FOUND in PATH"
657+ echo "=== which node ==="
658+ which node || echo "node NOT FOUND in PATH"
659+ echo "=== disk space ==="
660+ df -h / | tail -1
661+ echo "=== node_modules exists ==="
662+ ls -d ../node_modules/ && echo "yes" || echo "NO - node_modules missing!"
663+
630664 - name : Build Android app
631665 if : steps.android-build-cache.outputs.cache-hit != 'true'
632666 working-directory : example/android
633667 env :
634668 JAVA_OPTS : " -XX:MaxHeapSize=6g"
635669 run : |
636- ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=x86_64
670+ ./gradlew assembleDebug --no-daemon --console=plain --stacktrace - PreactNativeArchitectures=x86_64
637671
638672 - name : Save Android build cache
639673 if : steps.android-build-cache.outputs.cache-hit != 'true'
0 commit comments