Unauthorized inclusion: <jni.h>

I have some problems with eclipse and sequoia. I wrote a simple application, and without sequoyah it builds successfully. But it gets into the emulator, so I decided to use sequoyah for my own debugging. And after installing sequoyah, I see that unauthorized inclusion does not allow me to create and run a project. Can anybody help me? Thank.

+5
source share
4 answers

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

  • Open Eclipse Navigator View (so you can see hidden files).
  • Delete .project and .cproject.
  • ( , ) Eclipse.
  • β†’ β†’ β†’ C/++ β†’ C/++.
  • ++ "". GNU Make (do NOT Android Make one!).
  • .
  • Project β†’ Properties β†’ C/++ General β†’ Paths and Symbols. "" "" ( "/Developer/AndroidNDK/platform/android-9/arch-arm/usr/include" )
  • , "", " ".
  • Eclipse , !

, .

+5

, Android NDK NDK-HOME .

Android NDK Eclipse - > Windows- > Preference- > Android- > NDK NDK Eclipse β†’ Android- >

.

Ur :)

+3

jni.h - NDK, , , , .

++ NDK , {ANDROID_NDK}/platforms/android-{version}/arch/arm/usr/include ide

, , eclipse , , .

post your errors to logcat, maybe we can help?

+1
source

you need to add jni.h to your project path.

add the following paths to: Project -> Properties -> C / C ++ General -> Paths and Symbols -> "Includes" -> GNU C ++

$ {NDK_ROOT} \ Sources \ CXX-STL \ wildebe-libstdC ++ \ 4.8 \ enable

$ {NDK_ROOT} \ platform \ Android-9 \ arch-x86 \ USR \ includes

clean the project.

+1
source

All Articles