jni删除

来源:互联网 发布:淘宝店铺叫虎扑伙伴 编辑:程序博客网 时间:2024/06/03 19:36

1,删除jni,obj文件夹
2,打开项目所在的磁盘位置,删除.cproject文件
3,打开.project文件,删除以下代码

<buildCommand>          <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>            <triggers>clean,full,incremental,</triggers>            <arguments>                <dictionary>                    <key>?children?</key>                    <value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|\||</value>                </dictionary>                <dictionary>                    <key>?name?</key>                    <value></value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.append_environment</key>                    <value>true</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.buildArguments</key>                    <value></value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.buildCommand</key>                    <value>ndk-build</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>                    <value>clean</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.contents</key>                    <value>org.eclipse.cdt.make.core.activeConfigSettings</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.enableAutoBuild</key>                    <value>false</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.enableCleanBuild</key>                    <value>true</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.enableFullBuild</key>                    <value>true</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.stopOnError</key>                    <value>true</value>                </dictionary>                <dictionary>                    <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>                    <value>true</value>                </dictionary>            </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>

如果不知道删除什么,可以写一个没有jni的工程,然后比较两个工程.project文件,将含有jni工程的.project文件多余部分删除就好
4、把该工程从eclipse中删除:注意只是从工程中删除,不是从磁盘中删除。
5,重启eclipse,重新import该工程

0 0
原创粉丝点击