apply plugin: 'com.android.library' android { compileSdkVersion 30 defaultConfig { minSdkVersion 19 targetSdkVersion 30 versionCode 1 versionName "1.0" externalNativeBuild { cmake { arguments '-DANDROID_TOOLCHAIN=clang' } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" } } compileOptions { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 } ndkVersion '22.1.7171670' buildToolsVersion '30.0.2' } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' testImplementation 'junit:junit:4.13.2' implementation 'androidx.appcompat:appcompat:1.3.0' }