apply plugin: 'com.android.library' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { minSdkVersion 14 targetSdkVersion 17 versionCode 1 versionName "1.0" externalNativeBuild { cmake { arguments '-DANDROID_PLATFORM=android-17', '-DANDROID_TOOLCHAIN=clang' // explicitly build libs // targets 're', 'rem', 'baresip' } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path 'src/main/cpp/CMakeLists.txt' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.4.0' }