JNI appears in eclipse unresolved inclusion: <jni.h> or type ' jint ' could not being resolved and other workarounds

Source: Internet
Author: User

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> &LT;NAME&GT;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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.