[Native] Shared Library for Windows, Linux and Android

I’m very new to Gradle, and am scratching my head trying to get a “nice” shared library build process.

I’d like to build a DLL/SO for Windows, Linux and Android within a single file (with maybe some modules there just to break up the structure). I’d also like to build a test executable that statically links the library and runs tests against it, probably for Windows only. I’ve got that working fine for Windows and Linux.

So, on to Android: Should I use the Google android plugin? It seems to be a very different beast than the examples given. Or should I use a “Windows/Linux” build using the NDK toolchain binaries somehow?