编译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']}}

更多相关文章

  1. Android(安卓)Studio 运行项目出现Information:Gradle tasks异常
  2. Android(安卓)Studio Error:warning: Ignoring InnerClasses att
  3. 〖Android〗arm-linux-androideabi-gdb报 libpython2.6.so.1.0:
  4. Android(安卓)Studio中Run按钮app的module显示红叉
  5. 几种常见的android Runtime异常
  6. 有关 Android(安卓)Studio 重复引入包的问题和解决方案
  7. Android示例HelloGallery中R.styleable unresolved的解决办法
  8. Android(安卓)studio 导入Module后报错记录
  9. Ubuntu 编译Android若干错误及解决方法(转)

随机推荐

  1. Android(安卓)客户端性能优化(魅族资深工
  2. android-EditText输入框被键盘遮挡问题解
  3. Android中读取短信信息
  4. Android(安卓)ListView SimpleAdapter Ar
  5. Android点击WebView网页中的email发送邮
  6. 【android】设置View字体点击变色和边框
  7. android 比较全的android 源码合集 + 企
  8. Android系统进程Zygote启动过程的源代码
  9. Android(安卓)视图动画(View Animation)
  10. android 比较全的android 源码合集 + 企