在android stuido添加mobile-ffmpeg庫(kù)報(bào)如下的錯(cuò)誤咏删,
More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so'
解決方法是在主項(xiàng)目的build.gradle的 android大括號(hào)里添加如下:
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'
}
}
就行了!