I've tried doing abiFilters ["armeabi-v7a"] instead of abiFilters.add("armeabi-v7a") but that results in linking error and message:
Execution failed for task ':linkMyModuleArm64-v8aDebugSharedLibrary'
Basing on this message I suspect that project is still build for all platforms...
Inside your
modelblock createandroid.productFlavorsblock (you should already have this). Then apply your abiFilter like this:Adding
abiFilters.addAll(['armeabi'])to your mainndkblock, would set the default for all "Variants"Have a look at http://tools.android.com/tech-docs/new-build-system/gradle-experimental#TOC-Other-Build-Options