buildscript { repositories { mavenCentral() jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.6.0' } } allprojects { repositories { mavenCentral() jcenter() google() } } apply plugin: 'com.android.application' dependencies { implementation 'com.andretietz.android:gamecontroller:1.1.1' } preBuild.doFirst { "sh support/mv-overlay.sh".execute() } android { buildToolsVersion "29.0.3" ndkVersion "21.0.6113669" compileSdkVersion 26 defaultConfig { targetSdkVersion 26 minSdkVersion 24 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] jniLibs.srcDirs = ['libs'] assets.srcDirs = ['assets'] } } externalNativeBuild { ndkBuild { path "jni/Android.mk" } } splits { abi { enable true reset() include 'armeabi-v7a', 'arm64-v8a' universalApk false } } }