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' }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)