报错的解决办法:2 files found with path ‘lib/arm64-v8a/libopencv_java3.so‘.
opencv
OpenCV: 开源计算机视觉库
项目地址:https://gitcode.com/gh_mirrors/opencv31/opencv
免费下载资源
·
网上下载的开源项目带C++编译库的一直报错:
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'lib/arm64-v8a/libopencv_java3.so'.
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets
百度了很多答案五花八门的,没有一个能够解决,后来发现有一个类似的,
在app模块下面的build.gradle文件下的andriod加入下面代码,重新Sync Now,再次debug运行成功
packagingOptions { //下面为实际重复导致报错的so文件 pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/arm64-v8a/libffmpeg.so' }
sourceSets { main { jniLibs.srcDirs = ['libs'] } }
GitHub 加速计划 / opencv31 / opencv
162
15
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:4 个月前 )
1a6ef7e0
Fixed Android build with Vulkan support. 10 小时前
53424364 - 1 天前
更多推荐
已为社区贡献1条内容
所有评论(0)