当前位置:网站首页>More than one file was found with OS independent path ‘lib/armeabi-v7a/libyuv. so‘.

More than one file was found with OS independent path ‘lib/armeabi-v7a/libyuv. so‘.

2022-07-01 05:16:00 Donald

error message :
More than one file was found with OS independent path ‘lib/armeabi-v7a/libyuv.so’.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > 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

Repair :
stay app In the catalog build.gradle Add... To the document :

android{
    
    packagingOptions {
    
        //  Match to multiple identical files , Extract only the first 
        pickFirst "lib/armeabi-v7a/libyuv.so"
        pickFirst "lib/arm64-v8a/libyuv.so"
    }
}

AS in packagingOptions Use

原网站

版权声明
本文为[Donald ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207010509142772.html