Android(安卓)- jni - error:More than one file was found with OS independent path ‘lib/*so‘
16lz
2021-01-24
编译JNI项目时,遇到了这样的错误:
More than one file was found with OS independent path 'lib/x86_64/libopencv_java4.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
解决方案:
sourceSets { main { jniLibs.srcDirs = ['libs']}}
更多相关文章
- Android(安卓)Studio 运行项目出现Information:Gradle tasks异常
- Android(安卓)Studio Error:warning: Ignoring InnerClasses att
- 〖Android〗arm-linux-androideabi-gdb报 libpython2.6.so.1.0:
- Android(安卓)Studio中Run按钮app的module显示红叉
- 几种常见的android Runtime异常
- 有关 Android(安卓)Studio 重复引入包的问题和解决方案
- Android示例HelloGallery中R.styleable unresolved的解决办法
- Android(安卓)studio 导入Module后报错记录
- Ubuntu 编译Android若干错误及解决方法(转)