Header files in includes are not identified jni c files

720 Views Asked by At

I am very beginner to android native programming. I know this is very basic question, but still i could not solve this. Please support me. I have some set of header files residing remotely(not in local_path). But i have included it under includes tree. I am trying to include this header file in a c file present in jni/sample.c Now the problem is that these header files are not recognized. (It shows "unresolved inclusion..etc"). Is this anything related to android.mk file? I did not mention remote header files path anywhere in android.mk file

1

There are 1 best solutions below

7
On

you have to add the path to these header files to LOCAL_C_INCLUDES variable you can set inside Android.mk (as you rightly guessed):

LOCAL_C_INCLUDES += ./path/to/your/includes