I want to write my own code for my Android application. I added this tutorial to add CPP files to my project. It compiles, but it conflicts with LibGDX.
How can I combine this with LibGDX?
I want to know how to add a simple CPP file with one function that will be called from my Android game.
I am using Android Studio.
When I add the jni path to my Android gradle, LibGDX stops working:
sourceSets { main { jni.srcDirs = 'cppsrc' jniLibs.srcDirs = ['libs'] } }
source share