OpenCV android build failing for arm64-v8a

Build is always failing with a linker error when trying to build OpenCV sdk with BUILD_ANDROID_PROJECTS enabled and ANDROID_ABI=arm64-v8a

Where can I find information regarding which sdk, ndk versions compatible with each opencv releases?

[776/776] Linking CXX shared library jni/arm64-v8a/libopencv_java4.so
FAILED: jni/arm64-v8a/libopencv_java4.so  
....   
lib/arm64-v8a/libopencv_imgcodecs.a: error adding symbols: Archive has no index; run ranlib to add one
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

More details regarding the error in the below stackoverflow link

here is the parameters that i used recently to compile the latest source.
completed successfully.
"C:\Program Files\Python39\python" ../opencv/platforms/android/build_sdk.py . ../opencv --ndk_path=C:/Users/sfb/AppData/Local/Android/Sdk/ndk/22.1.7171670 --config=ndk-22.config.py