Closed PrinceVergil closed 4 years ago
you need to write individual pickFirst lines or get the build straightened out to where you don't have duplicate so files.
packagingOptions {
pickFirst 'lib/armeabi/libavdevice.so'
pickFirst 'lib/armeabi-v7a/libavdevice.so'
pickFirst 'lib/arm64-v8a/libavdevice.so'
pickFirst 'lib/x86/libavdevice.so'
pickFirst 'lib/x86_64/libavdevice.so'
//etc ....
you might be able to try
packagingOptions {
pickFirst '**/libavdevice.so'
pickFirst '**/libavformat.so'
pickFirst '**/libavcodec.so'
//etc ....
@markkimsal still issue of dlopen is there
i temporary fixed it with
ndk { abiFilters "armeabi-v7a", "x86","x86_64" }
The rules of Google Play Store require that your APK includes arm64-v8a
binaries, but if you don't intend to publish your app, it's fine to keep armeabi-v7a
libraries only. Consider using NEON for better performance.
The name clash between mobile-ffmpeg and exoplayer is not an innocent one, and -neon
libraries resolve this problem at the expense of actually having almost duplicate binaries in your APK.
The best strategy if you must include both libraries, would be to use the mobile-ffmpeg shared objects for your expolayer. Make sure that you enable the relevant decoders when you run android.sh
. After this is ready, you can simply copy the *.so
files from prebuilt/ffmpeg
to $FFMPEG_EXT_PATH/ffmpeg/android-libs
instead of running build_ffmpeg.sh
. Now, packagingOptions { pickFirst '**/*.so' }
will be safe.
@alexcohn thanks for commenting. yes i need to push app to store. ill try you're suggestion
@alexcohn Thanks Solved it as you instructed.
Description I am using exoplayer-extension-ffmpeg And when i try to add mobile-ffmpeg
More than one file was found with OS independent path
to resolve this i have added.now code get compiled and runs but when it comes to execute
int rc = FFmpeg.execute(cmd);
it throws this erroris there any way to resolve this?