Thanks! Indeed it does. However it also appears to be dependent on the gradle task that will be executed.
Originally, I was executing the *build* task: ./gradlew clean build which will ignore the abiFilters value, and will proceed to build all ARCH_ABIs. The appears to be true for the *assemble* task. If however you use the *assembleDebug* task, then the value of the abiFilters value is respected. Regards On Thursday, July 30, 2015 at 4:27:51 PM UTC+3, [email protected] wrote: > > Apologies for the typo, should be abiFilters, as in: > > android.ndk { > > abiFilters = ["armeabi-v7a"] > } > > > On Thursday, July 30, 2015 at 2:23:43 PM UTC+1, [email protected] wrote: >> >> This works for me: >> >> android.ndk { >> moduleName = "hello-jni" >> ldLibs += "log" >> stl = "gnustl_static" >> abiFilter = ["armeabi-v7a"] >> } >> >> >> On Wednesday, July 29, 2015 at 4:17:23 PM UTC+1, George Metaxas wrote: >> >> Hello, >>> >>> I am having trouble using the gradle experimental support of NDK. I >>> cannot get it to stop building all supported ARCH_ABIs. >>> I have tried setting abiFilters in android.ndk, eg: >>> >>> android.ndk { >>> moduleName = "sample" >>> toolchain = "clang" >>> abiFilter += "armeabi-v7a" >>> } >>> >>> >>> I have tried setting the abi filter in the flavours, e.g: >>> android.productFlavors { >>> >>> create ("arm7") { >>> ndk.abiFilters += "armeabi-v7a" >>> } >>> >>> create ("x86-32") { >>> ndk.abiFilters += "x86" >>> } >>> create ("x86-64") { >>> ndk.abiFilters += "x86_64" >>> } >>> >>> create ("fat") >>> } >>> >>> >>> >>> I all instances, gradle would build for all support ARCH_ABIs (e.g. >>> arm64-v8a). >>> Is there any way around this? >>> >>> Thanks in advance >>> >> -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
