I'm not new to Android development but I'm a total newbie when speaking about NDK and .so libraries.
The app I'm building uses third party SDKs and they provide some .so files. They provide me with an .so file for every architecture (so far: arm64-v8a, armeabi, armeabi-v7a, mips, mips64, x86, x86_64).
I need to include a new third party SDK but they only provide .so files for armeabi-v7a and x86. When I try to run my app, it crashes and I get an error from the SDK (I see it on logcat) that states:
SDKNAME currently only provides prebuilt library for armeabi-v7a and x86 architectures
Is this a common scenario ? is there a way to fix this kind of scenario ?
Thanks a lot in advance
Store your compiled libraries in app/src/main/jniLibs/{arch} for example: armeabi/armeabi-v7a and then add the lines at the end of the post to your apps build.gradle.
The productFlavours is used to configure the compilation variants, so this way you could link properly already compiled libraries.