apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { applicationId "io.github.sdlpal" minSdkVersion 10 targetSdkVersion 25 externalNativeBuild { ndkBuild { arguments "NDK_APPLICATION_MK:=src/main/cpp/Application.mk" abiFilters "armeabi-v7a", "x86" } } } buildTypes { release { minifyEnabled false 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' }