CainKernel / CainCamera

CainCamera is an Android Project to learn about development of beauty camera, image and short video
2.87k stars 783 forks source link

请问运行的时候出现这个错误,是什么原因 #124

Open Hoke opened 4 years ago

Hoke commented 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

felixcc commented 3 years ago

我也遇到了,解决了吗?

CainKernel commented 3 years ago

这个应该是升级了gradle之后导致依赖的so路径冲突,不建议放在jniLibs目录下了,可以通过以下方法解决多种架构so选择问题,也可以采用不同的.a静态库,然后用脚本编译出相应的so解决这个问题: packagingOptions { pickFirst 'lib/*/libyuv.so' pickFirst 'lib/*/libffmpeg.so' }