react-native-vision-camera: Gradle build failed for the Expo Android Fix Pre-release
What were you trying to do?
Trying to install Vision Camera on android and do a successful expo build.
Reproduceable Code
No response
What happened instead?
FAILURE: Build failed with an exception.
Relevant log output
[stderr] FAILURE: Build failed with an exception. [stderr] * What went wrong: [stderr] Execution failed for task ':app:mergeDebugNativeLibs'. [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/libreactnativejni.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 7m 29s🐛
Device
iPhone 12 iOS 14
VisionCamera Version
2.9.4@expo
Additional information
- I am using Expo
- I have read the Troubleshooting Guide
- I agree to follow this project’s Code of Conduct
- I searched for similar issues in this repository and found none.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (6 by maintainers)
@haibert I just talked with Marc today via twitter. He tries to fix this in the holidays.
@mrousavy can we please get a update with the change you need mentioned since expo people can’t touch the gradle❤️🙏🏻
I ran into the same issue (without expo), the solution works for me, thanks.