apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "25.0.2" defaultConfig { applicationId "io.github.sdlpal" minSdkVersion 10 targetSdkVersion 12 externalNativeBuild { ndkBuild { arguments "NDK_APPLICATION_MK:=../jni/Application.mk" abiFilters "armeabi-v7a", "x86" } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } externalNativeBuild { ndkBuild { path '../jni/Android.mk' } } sourceSets { main.java.srcDirs += 'src/main/java' } }