Android Studio 升级后产生:More than one file was found with OS independent path的错误

报错:

More than one file was found with OS independent path 'lib/arm64-v8a/libswscale.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

原因分析:

打包两次?

解决方法,在build.gradle增加

android{
    packagingOptions {
    pickFirst 'lib/arm64-v8a/*'
    }
}
tag(s): 报错
show comments · back · home
Edit with Markdown