Bitrise Build Issue Report template
Description of the issue
Build log:
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:processReleaseResources’. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > Android resource linking failed aapt2 E 07-29 14:37:02 24406 24406 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data. aapt2 E 07-29 14:37:02 24406 24406 ApkAssets.cpp:149] Failed to load resources table in APK ‘/opt/android-sdk-linux/platforms/android-35/android.jar’. error: failed to load include path /opt/android-sdk-linux/platforms/android-35/android.jar. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See Command-Line Interface BUILD FAILED in 7m 2s 969 actionable tasks: 964 executed, 5 up-to-date ==> Script finished with exit code: 1
This error also occurs for SDK 36, but not for SDK 34
I’m using “Install missing Android SDK components” since 2 years and no problems so far - until now.
I’ve tried to manually install sdk 35 through sdkmanager (using script step)
yes | sdkmanager --sdk_root=“$LOCAL_SDK” “platforms;android-35”
But no effect. It still does not work.
Environment:
Where did the issue happen?
Stacks:
Ubuntu Noble 24.04 Bitrise 2025 edition & Ubuntu 22.04 for Android and Docker.
Which build Step causes the issue and which version of the step?
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
# or run a script from your repository, like:
bash ./scripts/bundle-android.sh
And script itself:
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && rm -rf android/app/src/main/res/drawable-* && rm -rf android/app/src/main/res/raw/* && cd android && ./gradlew assembleRelease && cd ..
Reproducibility
- This issue is every time if build is with SDK 35 or 36. For 34 it is Ok.