Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unresolved inclusion: <jni.h>

I have some troubles with eclipse & sequoyah. I wrote a simple app, and without sequoyah it builds successfully. But it falls in emulator, so I decided to use sequoyah for native debugging. And after sequoyah's installation I see that unresolved inclusion don't allow me to build & run the project. Can anybody help me with it? Thanks.

like image 495
SirHamlet Avatar asked Jul 04 '11 13:07

SirHamlet


1 Answers

I had to do the following steps to get rid of this warning:

  1. Open Eclipse's Navigator View (so you can see hidden files).
  2. Delete .project and .cproject.
  3. Clean (you might get some errors, but that's normal) and restart Eclipse.
  4. File -> New -> Other -> C/C++ -> Convert to a C/C++ project.
  5. Make sure to select C++ in the Radio button. Also, select the GNU Make (do NOT select the Android Make one!).
  6. Clean the project.
  7. Right click on Project -> Properties -> C/C++ General -> Paths and Symbols. Go to the "Includes" tab and include the folder path for the "include" directory of the desired target (in my case it was "/Developer/AndroidNDK/platforms/android-9/arch-arm/usr/include")
  8. Before clicking on "Ok", check the "Apply to all" checkbox.
  9. Restart Eclipse one last time and the warning should be gone!

Hope it helps.

like image 145
Bitcoin Cash - ADA enthusiast Avatar answered Sep 27 '22 21:09

Bitcoin Cash - ADA enthusiast