O
O
OypiStudent2016-03-07 13:15:54
Java
OypiStudent, 2016-03-07 13:15:54

How to configure Eclipse for NDK to resolve #include jni.h? To write code directly in it both on the SDK and on the NDK?

I am mastering the NDK according to this manual:
www3.ntu.edu.sg/home/ehchua/programming/android/an...

It seems that everything works out, but here is the problem, when I open any file from the library source in Eclipse, the IDE does not see jni.h header and therefore I don't see a list of constants, functions, types, etc.
For example, stdio.h (I tried this) also does not see it.
At the same time, the syntax is highlighted, everything is ok with this.

Well, you can compile on the command line, as in the tutorial, but writing code almost like in a notepad is not the case, you understand.

How to setup?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2016-03-07
@GavriKos

Do you have a clean eclipse? If yes - put the assembly from nvidia.
In general, look in the include paths settings and write the paths to ndk there. In the project settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question