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

Detox build error: More than one file was found with OS independent path 'lib/x86/libc++_shared.so' #1373

Closed
sxqnicholas96 opened this issue May 9, 2019 · 1 comment

Comments

@sxqnicholas96
Copy link

Hi everyone,

I’m trying to build Detox tests for ReactNative project for android and it’s throwing this error

> Task :react-native-pdf:transformNativeLibsWithMergeJniLibsForDebugAndroidTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-pdf:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'.
> More than one file was found with OS independent path 'lib/x86/libc++_shared.so'
After doing some research adding this block of code in app/build.gradle should’ve helped

android {
packagingOptions {
pickFirst '/libjsc.so'
pickFirst '
/libc++_shared.so'
}
}
However for some reason, gradlew assembleAndroidTest is not using the packagingOptions to run its build which then results in More than one file was found with OS independent path 'lib/x86/libc++_shared.so error.

Anyone knows a workaround for this?

@support
Copy link

support bot commented May 9, 2019

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

@support support bot closed this as completed May 9, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant