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:=src/main/cpp/Application.mk" abiFilters "armeabi-v7a", "x86" } } } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } debug { jniDebuggable true externalNativeBuild { ndkBuild { cFlags "-DDEBUG", "-g" cppFlags "-DDEBUG", "-g" } } } } externalNativeBuild { ndkBuild { path 'src/main/cpp/Android.mk' } } sourceSets { main.java.srcDirs += 'src/main/java' } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:gridlayout-v7:25.3.1' compile 'com.android.support:design:25.3.1' }