I'm using the jniLibs.srcDir directive to include some prebuilt JNI libraries in an AAR. My problem is when I add this, the libraries are included both directly, in libs/armeabi/foo.so, but also inside classes.jar. This balloons the size of the APK.
Has anyone else seen this? Any suggestions for how to tell the gradle plugin to do the right thing?
Thanks very much.
Dave