1.. project file
Delete all XML node elements that include the ORG.ECLIPSE.CDT prefix. The following is a complete compilation configuration file that includes the CDT.
<?xml version= "1.0" encoding= "UTF-8"? ><projectdescription><name>xapp</name><comment ></comment><projects></projects><buildSpec><buildCommand><name> Org.eclipse.cdt.managedbuilder.core.genmakebuilder</name><triggers></triggers><arguments ></arguments></buildCommand><buildCommand><name> com.android.ide.eclipse.adt.resourcemanagerbuilder</name><arguments></arguments></ Buildcommand><buildcommand><name>com.android.ide.eclipse.adt.precompilerbuilder</name> <arguments></arguments></buildCommand><buildCommand><name> org.eclipse.jdt.core.javabuilder</name><arguments></arguments></buildcommand>< Buildcommand><name>com.android.ide.eclipse.adt.apkbuilder</name><arguments></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></ Projectdescription>
Buildcommand. And the elements in the Natuve are to be deleted.
2. Delete the. cproject file, this file is a/C + + compilation configuration.
3. Delete the JNI with src/, res/sibling folder, and the Armeabi under JNI
4. Remove project from the work range. And then import it again.
This step is important, and the work interval caches each project compilation result. Only such a full change of the above will take effect.
ref : http://pilcrowpipe.blogspot.com/2011/12/removing-native-support-from-android.html
Removal of native layer compilation support in eclipse