Gradle android build for different processor architectures

view story

http://stackoverflow.com – I want to build 4 separate apks for 4 different Android CPU processor architectures (armeabi armeabi-v7a x86 mips) using Gradle. I have native OpenCV libraries built for 4 CPU architectures in the libs folder. libs -armeabi -armeabi-v7a -x86 -mips I want to each apk only contains the OpenCV library corresponding to the correct CPU architecture. The current build script is as below: apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jar') compile project(':workspace:OpenCV4Android:sdk:java') } android { compileSdkVersion 11 (HowTos)