I use it
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'org.bytedeco:javacv-platform:1.3.1'
compile 'org.bytedeco.javacpp-presets:ffmpeg:3.2.1-1.3'
compile 'org.bytedeco.javacpp-presets:opencv:3.1.0-1.3'
}
but it's import all platform.
like is

How to only import android platform? please:)
You can either exclude them, or include only the artifacts you need, the ones not suffixed with "-platform".
There's this:
https://github.com/bytedeco/sample-projects/blob/master/JavaCV-android-example/app/build.gradle
https://github.com/bytedeco/javacv/wiki/Configuring-Proguard-for-JavaCV#gradle-settings
But feel free to make a contribution! We need more documentation
I get the problem too锛宧ow to exclusion other platform support on maven pom.xml . because it鈥榮 so fat when I compile my project
@cjsky666 you can use maven-war-plugin and exclude other platform ,like this
<configuration> <packagingExcludes> WEB-INF/lib/*android-arm.jar, WEB-INF/lib/*android-arm64.jar, WEB-INF/lib/*android-x86.jar, WEB-INF/lib/*android-x86_64.jar, WEB-INF/lib/*ios-arm.jar, WEB-INF/lib/*ios-arm64.jar, WEB-INF/lib/*ios-x86_64.jar, WEB-INF/lib/*windows-x86.jar, WEB-INF/lib/*windows-x86_64.jar, WEB-INF/lib/*macosx-x86_64.jar, WEB-INF/lib/*linux-x86.jar </packagingExcludes> </configuration>
Most helpful comment
@cjsky666 you can use maven-war-plugin and exclude other platform ,like this