Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate libreactnative.so and libjsi.so #3118

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

tomekzaw
Copy link
Member

Description

I've started seeing these errors on 0.76.0-rc.1.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
   > 2 files found with path 'lib/arm64-v8a/libjsi.so' from inputs:
      - /Users/tomekzaw/RNOS/Reanimated76/react-native-reanimated/node_modules/react-native-gesture-handler/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libjsi.so
      - /Users/tomekzaw/.gradle/caches/8.10/transforms/e363f8ea49fe13fc78e6ed35173e9914/transformed/react-android-0.76.0-rc.1-debug/jni/arm64-v8a/libjsi.so
     If you are using jniLibs and CMake IMPORTED targets, see
     https://developer.android.com/r/tools/jniLibs-vs-imported-targets
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
   > 2 files found with path 'lib/arm64-v8a/libreactnative.so' from inputs:
      - /Users/tomekzaw/RNOS/Reanimated76/react-native-reanimated/node_modules/react-native-gesture-handler/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libreactnative.so
      - /Users/tomekzaw/.gradle/caches/8.10/transforms/e363f8ea49fe13fc78e6ed35173e9914/transformed/react-android-0.76.0-rc.1-debug/jni/arm64-v8a/libreactnative.so
     If you are using jniLibs and CMake IMPORTED targets, see
     https://developer.android.com/r/tools/jniLibs-vs-imported-targets

Test plan

@tomekzaw tomekzaw requested a review from j-piasecki September 23, 2024 07:18
@tomekzaw tomekzaw merged commit 2987cf2 into main Sep 23, 2024
3 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/exclude-more-so-files branch September 23, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants