1 关闭eclipse
2 到该项目下,打开.project,删除包含org.eclipse.cdt.managedbuilder.core.genmakebuilder和org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilderand的<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 删除.cproject文件
4 重新打开eclipse,添加Android Native nature即可
参考:http://stackoverflow.com/questions/23122934/eclipse-adt-unresolved-inclusion-jni-h
时间: 2024-10-20 01:48:14