apply plugin: 'java' if (!hasProperty('mainClass')) { ext.mainClass = '' } dependencies { //added annotations used by JmeSurfaceView. implementation 'androidx.appcompat:appcompat:1.2.0' compile project(':jme3-core') compile project(':jme3-plugins') compileOnly 'android:android' } compileJava { // The Android-Native Project requires the jni headers to be generated, so we do that here options.compilerArgs += ["-h", "${project.rootDir}/jme3-android-native/src/native/headers"] }