I've got a JNI code in my Android project and it is included in Gradle file as following
externalNativeBuild {
cmake {
path 'CMakeLists.txt'
}
}
The code is compiled fine. *.so binaries are included in main APK and works great. But now I'm trying to add AndroidTest which would include testing code with uses JNI and I've got exception that native library is not loaded. I've checked that test APK doesn't include *.so binaries at all. Could you advise how I should change my Gradle file to include code generated in CMakeList in test APK as well?