Android build failing because of NDK step

Bitrise Build Issue Report template

Description of the issue

Android build is failing for all our apps since today without any changes on our part.

Here’s the error in android-build step:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-image-filter-kit:stripReleaseDebugSymbols'.
> NDK at /usr/local/share/android-sdk/ndk-bundle did not have a source.properties file

Environment:

Where did the issue happen?

Bitrise version: 1.47.2
agent version: 1.33.0
android-build: 0.10.4 and 1.0.0
install-missing-android-tools: 2.4.1 and 2.4.0 and 2.3.9
stack: Xcode 12.3 and 12.5

1 Like

Could this be related to this change:
https://github.com/bitrise-io/osx-box-bootstrap/commit/533d034877cb209758f6bb2be37f537bf4fd0b58#diff-bba6f30949c3a1e7b4b563110e52e27628ff550b2042e3325547937f57d6ff32

See CHANGELOG:

Point Android NDK location to $ANDROID_HOME/ndk-bundle instead of /opt/android-ndk

@sreggiani Our stack is currently being updated to resolve this error.

In the meantime, our team has come up with a workaround script:

mv $ANDROID_HOME/ndk-bundle{,.error}
mv $ANDROID_HOME/ndk-bundle.error/android-ndk-r21e $ANDROID_HOME/ndk-bundle
1 Like

Seems like the stack has been fixed and this workaround is not necessary (it actually fails now)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.