In the process of doing NDK development, there are times when you encounter in eclipse the inability to handle inclusion and cause symbol to display errors, and there are many ways on the web to resolve similar "unresolved inclusion jni.h" errors, including include Path and so on, but not for me.
The final solution is to initialize Eclipse's native support for this project:
1. Close the specified project in eclipse
2. Open the project's. project file with another editing tool, and delete the following:
......
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
< triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</ Buildcommand> ...
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand> ...
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature< /nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
< Nature>org.eclipse.cdt.managedbuilder.core.scannerconfignature</nature>
3. Delete the. cproject file
4. In Eclipse, open the original project, refresh, and then right-click->properties->android Tools-> Add Native Support
5. Take care of