How to add OpenCV libs in gradle?

In General, I use opencv in java via Java wrapper opencv-310.jar
Created a javaFx application, and there manually added the needed libs in this way
d608c6e457d84a50aa7e9b521a07b8bf.png
There jar'1 ka and 2 DLLs, one for 32-bit systems and one for 64-bit.
All opencv libs are locally.
In the main function, load them through the System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Everything works fine.

Created gradle project and I can't figure out how to add the same as mentioned above in the build.gradle
How to add dll libs that worked as well as when I add them manually?
July 2nd 19 at 17:07
1 answer
July 2nd 19 at 17:09
Well, so you can add the jar file, and how to add DLLs and to specify that they are native? - Skye.Blick commented on July 2nd 19 at 17:12
: alternatively, you can package Your native library in jar - asia_Lesch30 commented on July 2nd 19 at 17:15

Find more questions by tags OpenCVGradleJavaProgramming