More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so'

在android stuido添加mobile-ffmpeg库报如下的错误,
More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so'

解决方法是在主项目的build.gradle的 android大括号里添加如下:
android{
....
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
}
}
就行了!

你可能感兴趣的:(More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so')