I need to use nonfree module in my app. I have been trying to build the app in the Android Studio native environment using ndk. I followed the tutorial here and generated .so files and added them to my project.
But then my app was crashing whenever I use opencv libraries. Here is the problem I faced. So I thought of rebuilding the entire opencv library for Android Studio. I followed the steps here, generated the files and steps here to build the libraries. I got to 29% and this following error occurred.