apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion externalNativeBuild { ndkBuild { path 'jni/Android.mk' } } defaultConfig { externalNativeBuild { ndkBuild { // Passes an optional argument to ndk-build. arguments "GRADLE=true" } } } }