国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 系統(tǒng) > Android > 正文

解決NDK開發(fā)中Eclipse報(bào)錯(cuò)Unresolved inclusion jni.h的最終解決方法(已測(cè))

2019-12-12 04:25:16
字體:
供稿:網(wǎng)友

在做NDK開發(fā)過程中有時(shí)候在eclipse里會(huì)遇到其無法處理inclusion導(dǎo)致symbol顯示錯(cuò)誤,網(wǎng)上有許多方法可以解決類似“Unresolved inclusion jni.h” 錯(cuò)誤的方法,包括include path等方法,不過對(duì)我都不管用。

最終的解決辦法就是初始化eclipse對(duì)該project的native support:

1. 在eclipse中關(guān)閉指定Project
2. 用其他編輯工具打開該project的.project文件,刪除以下內(nèi)容:

......<buildCommand><name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name><triggers>clean,full,incremental,</triggers><arguments></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>

3. 刪除.cproject文件
4. 在eclipse里打開原來的project, refresh,然后右鍵->properties->Android Tools -> Add Native Support
5. 搞定

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 泰顺县| 隆德县| 肥乡县| 南宫市| 绩溪县| 宁波市| 临潭县| 宕昌县| 绵阳市| 秦安县| 平凉市| 昌乐县| 偃师市| 七台河市| 内丘县| 松阳县| 尼木县| 建平县| 宁南县| 襄垣县| 太白县| 武邑县| 鄱阳县| 乌拉特前旗| 招远市| 娄底市| 仁怀市| 蒲城县| 夹江县| 蓝田县| 临泽县| 宾阳县| 临武县| 岳西县| 渝中区| 周口市| 英吉沙县| 余姚市| 伊春市| 通许县| 平阳县|