platforms/android/aar-template/README.md
export JAVA_HOME=~/Android Studio/jbr
export ANDROID_HOME=~/Android/SDK
python build_java_shared_aar.py "~/opencv-4.7.0-android-sdk/OpenCV-android-sdk"
python build_static_aar.py "~/opencv-4.7.0-android-sdk/OpenCV-android-sdk"
The AAR libraries and the local Maven repository will be created in the outputs directory
The scripts consist of 5 steps:
There are a few minor limitations: