4
votes

I am new in Android NDK running the first hello JNI example. I added the jni folder and added the c file in which I'm getting error that some are not resolved.

Error

I convert project to the C/C++ also and Add the NDK in the eclipse like below

NSK

But still have red error line in cpp file which shows some could not be resolved.

Guys help me!

2

2 Answers

3
votes

I solved this issue to add the project to Native Support.

Follow this approach:-

Android Right Click on project then Android Tools then Add Native Support.

0
votes

It's a typo, it should be JNIEnv instead of JNIENV. If that doesn't fix it, then there is some configuration problem in your project.