I have a library called somelibrary/lib/c++/armeabi-v7a/libsomelibrary.a. How do I add it to the Gradle files in my Android project?
Obviously the library also contains the headers under somelibrary/include/somelibrary/*.h but that's the easy part because I can just add a line cppFlags.addAll(['-I' + file('somepath/somelibrary/include')]) to my build.gradle.
But how do I also add the .a file to the project so that the linking works on all binary formats, not only armeabi-v7a but also arm64-v8a, armeabi and x86? The library contains versions of the .a file for all those binary formats. And in addition to that, it also contains versions for two different c++ standard libraries: "c++" and "gnustl". I don't have the source code of the library.
.liband.aare same thing across platform windows and linux