Reputation: 619
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...
Upvotes: 1
Views: 288
Reputation: 1085
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
Upvotes: 1