Are there no more plans to support Gradle in building the OpenCV Java project?

asked 2018-07-19 05:52:56 -0500

Gensoukyou1337 gravatar image

updated 2018-07-19 05:53:20 -0500

In my most recent pull of the OpenCV repository in github, I looked into the opencv_gradle_projects.cmake file in ./cmake/android. All I saw was:

message(FATAL_ERROR "
Android gradle-based build/projects are not supported in this version of OpenCV.
You need to downgrade Android SDK Tools to version 25.2.5.

So does that mean that the Android Studio project can only be built using Ant? Are there no more plans to include Gradle support, or is it in development?

edit retag flag offensive close merge delete


"So does that mean that the Android Studio project can only be built using Ant?" -- yes.

"Are there plans to include Gradle support" -- not really.

the whole android situation seems to be "low priority" right now.

however: ofc. IF you get something running with gradle, ppl will be happy, if you contribute it, i'm sure.

berak gravatar imageberak ( 2018-07-19 06:09:07 -0500 )edit

Actually I've gotten the sdk to work with Gradle, just not in the way intended by the project itself (heard I had to just import the entire sdk folder). What I did was to import the <install-dir>/sdk/java folder instead of the entire sdk folder, then put the native libs in jniLibs somewhere in either project. I still can't figure out where to put the libs in aarch64 devices, though.

Gensoukyou1337 gravatar imageGensoukyou1337 ( 2018-07-19 21:43:38 -0500 )edit
berak gravatar imageberak ( 2018-07-20 01:23:26 -0500 )edit

Apparently the repo's maintainer removed the Android example.

Gensoukyou1337 gravatar imageGensoukyou1337 ( 2018-08-02 23:00:53 -0500 )edit