This type of error occurs frequently in Eclipse, including errors in the include file or jint,jclass,jnienv could not being resolved, but can be compiled and passed to eliminate these errors or warnings
1. Open. Project, delete the CDT section
<buildSpec><buildCommand> <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> <triggers>clean,full,incremental,</triggers> <arguments> </arguments> </buildCommand> <buildCommand> <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> & Lt;name>com.android.ide.eclipse.adt.precompilerbuilder</name> <arguments> </argume nts> </buildCommand> <buildCommand> <NAME>ORG.ECLIPSE.JDT.CORE.JAVABUILDER&L t;/name> <arguments> </arguments> </buildCommand> <buildcomman D> <name>com.android.ide.eclipse.adt.ApkBuilder</name> <arguments> & Lt;/arguments> </buildCommand><buildCommand> <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> <triggers>full,incremental,</triggers> <arguments> </arguments> </buildCommand></buildSpec> <natures> <nature>com.android.ide.eclipse.adt.AndroidNature</nature> <nature>org.eclipse.jdt.core.javanature</nature><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></natures>
2. Delete the. cproject file
3. Open the project, refresh, then right-->properties->android Tools, ADD Native support
The preceding steps will not result in the previous errors and warnings.
JNI appears in eclipse unresolved inclusion: <jni.h> or type ' jint ' could not being resolved and other workarounds