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