Open Hoke opened 4 years ago
More than one file was found with OS independent path 'lib/armeabi-v7a/libyuv.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
我也遇到了,解决了吗?
这个应该是升级了gradle之后导致依赖的so路径冲突,不建议放在jniLibs目录下了,可以通过以下方法解决多种架构so选择问题,也可以采用不同的.a静态库,然后用脚本编译出相应的so解决这个问题: packagingOptions { pickFirst 'lib/*/libyuv.so' pickFirst 'lib/*/libffmpeg.so' }
packagingOptions { pickFirst 'lib/*/libyuv.so' pickFirst 'lib/*/libffmpeg.so' }
More than one file was found with OS independent path 'lib/armeabi-v7a/libyuv.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake