-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
π Android conflict when using react-native-audio-api with ffmpeg-kit
Context
Following up on
π #808
The PR
π #813
successfully fixed the issue on iOS π
However, on Android, a native library conflict still persists when using react-native-audio-api together with ffmpeg-kit.
β Problem
When building the Android app, Gradle fails during native libs merging with the following error:
* 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/libavcodec.so' from inputs:
- /Users/remyntshaykolo/Documents/source/react-native-audio-api-ffmpeg/node_modules/react-native-audio-api/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libavcodec.so
- /Users/remyntshaykolo/.gradle/caches/8.13/transforms/2b4f78b57abc536aa54f407c6028b979/transformed/ffmpeg-kit-full-gpl/jni/arm64-v8a/libavcodec.so
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targetsThis indicates a duplicate native library (libavcodec.so) coming from:
react-native-audio-apiffmpeg-kit-full-gpl
π Reproduction
A minimal reproduction repository is available here:
π https://github.com/RemyNtshaykolo/react-native-audo-api-ffmpeg
Steps to reproduce:
yarn pc # Expo prebuild
yarn a-r # Build & run on Android emulatorβ Expected behavior
react-native-audio-apishould not bundle or expose conflicting FFmpeg native libraries on Android
or
Thanks a lot for the great work on this library π
Let me know if you want me to test a patch or a branch.
Metadata
Metadata
Assignees
Labels
No labels