2024: I found a simple approach, no need to edit build.gradle file.
Just add jniLibs dir and subdirs for archs, as in picture below (it's a simple answer by MS Copilot):
jniLibs