build failing -

Since upgrading to SDK 42 I have been getting the below error when trying to build with eas.

[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeReleaseNativeLibs'.
[stderr] > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
[stderr]    > More than one file was found with OS independent path 'lib/x86_64/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
[stderr] * Try:
[stderr] 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.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 8m 26s
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

Unsure how to even debug such an issue as I dont have access to Android/iOS folder.

Also i rather avoid going to bare react native as i really enjoy eas build and deploy features :see_no_evil:

hi there! this was a bug in react-native-reanimated. it has been resolved in react-native-reanimated@2.2.2.

1 Like

thank you brent, that is indeed the issue…

it was bit hard finding the right keywords at first but thankfully i came across: EAS build fails for Android: Execution failed for task ':app:mergeReleaseNativeLibs' - #4 by creack

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