buildscript { repositories { jcenter() google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.2.1' } } apply plugin: 'com.android.application' repositories { jcenter() google() mavenCentral() } dependencies { implementation 'androidx.appcompat:appcompat:1.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' } // The sample build uses multiple directories to // keep boilerplate and common code separate from // the main sample code. List dirs = [ 'main', // main sample code; look here for the interesting stuff. 'common', // components that are reused by multiple samples 'template'] // boilerplate code that is generated by the sample template process android { compileSdk 33 defaultConfig { minSdkVersion 24 //noinspection ExpiredTargetSdkVersion targetSdkVersion 27 } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } sourceSets { main { dirs.each { dir -> java.srcDirs "src/${dir}/java" res.srcDirs "src/${dir}/res" } } androidTest.setRoot('tests') androidTest.java.srcDirs = ['tests/src'] } ndkVersion '26.1.10909125' }