我将两个无法更改的库导入到项目中。一个包含一段ffmpeg和ffmpeg的播放器。与
有冲突lib/armeabi-v7a/libavdevice.so
lib/armeabi-v7a/libavutil.so
lib/armeabi-v7a/libswresample.so
lib/armeabi-v7a/libavformat.so
lib/armeabi-v7a/libavcodec.so
lib/armeabi-v7a/libswscale.so
lib/armeabi-v7a/libavfilter.so
成绩错误:
More than one file was found with OS independent path 'lib/armeabi-v7a/libavdevice.so'
如何从导入ffmpeg中排除冲突文件?
我已经尝试exclude
,但它也将文件从播放器中排除。
我的gradle进口
implementation(group: 'org.bytedeco', name: 'javacv-platform', version: '1.4.2') {
exclude group: 'org.bytedeco.javacpp-presets'
}
implementation (group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: "4.0.1-1.4.2")
implementation (group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: "4.0.1-1.4.2", classifier: 'android-arm64')
implementation (group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: "4.0.1-1.4.2", classifier: 'android-arm')
implementation files('libs/player.aar')