apply plugin: 'com.android.library' def jniLibsDir = System.properties['jniLibsDir'] def buildDir = System.properties['buildDir'] project.buildDir = buildDir buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } android { compileSdkVersion 29 buildToolsVersion "29.0.2" defaultConfig { minSdkVersion 24 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } android { lintOptions { abortOnError false } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 } sourceSets { main { jniLibs.srcDirs = [jniLibsDir] } } } dependencies { testImplementation 'org.junit.jupiter:junit-jupiter-api:5.1.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.1.1' testImplementation 'com.google.protobuf:protobuf-java:3.10.0' }