0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

More than one file was found with OS independent path 'lib/arm64-v8a/libopencv_java3.so'. エラー回避備忘録

Posted at

概要

出くわしたエラー

More than one file was found with OS independent path 'lib/arm64-v8a/libopencv_java3.so'.

きちんとopencvをcmake から読み込んで動的リンクをしているはずなのだが、このエラーが出てしまう。

解決法

app/gradle

    externalNativeBuild {
        cmake {
            path "src/main/cpp/CMakeLists.txt"
            version "3.10.2"
        }
    }
    sourceSets {
        main {
            jniLibs.srcDirs = ['src/main/libs']
        }
    }

とする。

なぜ解決するかは完全には理解していない。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?