Hi,
I'm converting a rather large project which has been previously managed using Maven, and imported into AS using that as a builder. It builds fine, and I'm even on the latest canary (currently 0.5.9). There are 3 NDK modules, spread over 2 Android.mk files, and the resulting APK entries are /lib/armeabi/foo1.so, foo2.so and foo3.so and the same in \lib\armeabi-v7a.
The problem is I can only seem to create these *.so files using Maven if I explicitly invoke the NDK for each one, so in Windows the line is
commandLine 'ndk-build.cmd', '-C', System.getProperty("user.dir") + '/bar/foo1 and then separately commandLine 'ndk-build.cmd', '-C', System.getProperty("user.dir") + '/bar/foo2. This seems wrong, and I still have the problem of copying the *.so files from wherever they are created this way to where ever the APK packager needs them to be in order to recreate exactly the current deployed /lib armeabi .. files.
I suspect there is full support for this and all I need to so is grasp how the jniLibs.srcDir or jni.srcDirs entries should work in my situation and all this is done automatically in Gradle. And also, what the ndk { ... } entry in the defaultConfig { } clause is used for, because right now I'm not using any of those. Anyone spot what I need please?