android知识整理(站位)

android知识整理(站位),第1张

android知识整理(站位) so文件重复解决 日志
11:34:47 * What went wrong:
11:34:47 Execution failed for task ':algorithm:mergeDebugNativeLibs'.
11:34:47 > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
11:34:47    > 2 files found with path 'lib/arm64-v8a/libopencv_imgcodecs.so' from inputs:
11:34:47       - /mnt/jenkins/workspace/EHomeAlgorithmService/algorithm/build/intermediates/merged_jni_libs/debug/out
11:34:47       - /mnt/jenkins/workspace/EHomeAlgorithmService/algorithm/build/intermediates/cmake/debug/obj
11:34:47      If you are using jniLibs and CMake importED targets, see
11:34:47      https://developer.android.com/r/tools/jniLibs-vs-imported-targets
解决办法

在gradle的android模块下加入如下配置

  packagingOptions {
        pickFirst '**/*.so'
    }

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5660827.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存