1

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...

UfoXp
  • 619
  • 5
  • 13

1 Answers1

1

Inside your model block create android.productFlavors block (you should already have this). Then apply your abiFilter like this:

create("arm"){
    dimension = "abi"
    ndk.abiFilters.addAll(['armeabi'])
}

Adding abiFilters.addAll(['armeabi']) to your main ndk block, 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

micha
  • 1,036
  • 8
  • 12