I follow the android-studio-jni guide and try to compile native C ++ code with gradle. Everything works fine: I can load the JNI function, write C ++ classes, compile, run and debug. And I do not need to write and maintain the make files Application.mk and Android.mk ; both of them are apparently handled by gradle implicitly. There is only one thing that I don’t understand: How to include C ++ header files from standard libraries?
I think that there must be something missing in the gradle script, but I cannot find a good link on what to add here. Here is the script:
android.ndk {
moduleName = "hello-android-jni"
stl = "stlport_static"
}
And screenshots showing that all std headers are not showing.
