Skip to content

Android: add javacpp preset dependency

mkokho edited this page Mar 25, 2017 · 1 revision

Example

Below is the example dependency on opencv module.

dependencies {
    compile 'org.bytedeco.javacpp-presets:opencv:3.2.0-1.3' #contains Java classes
    compile 'org.bytedeco.javacpp-presets:opencv:3.2.0-1.3:android-arm' #contains native libraries used by Java classes

    #native library for the machine that runs tests
    testCompile 'org.bytedeco.javacpp-presets:opencv:3.2.0-1.3:macosx-x86_64'  
}