apply plugin: 'com.android.library' android { compileSdkVersion xversions.compileSdk defaultConfig { minSdkVersion xversions.minSdk targetSdkVersion xversions.targetSdk versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" externalNativeBuild { // https://developer.android.com/ndk/guides/cmake cmake { cppFlags "-std=c++11 -frtti -fexceptions" } } ndk { abiFilters xabis } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "CMakeLists.txt" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.annotation:annotation:1.0.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' }