eclipse android开发环境 bug CDT包含路径名无法修改(JNI开发使用)

这个bug在去年九月就已经反映在android论坛(http://code.google.com/p/android/issues/detail?id=37424 ),可现在(2013.5.31)还没有解决。晕啊,CDT的开发者不看android论坛吗。文章最后给出的临时解决方案,不嫌累的话就先用着。

Please describe the problem in detail, with the following information (if
applicable)
Host OS: OS X
SDK tools version (available in the "About" section of the 'android' tool
UI): 20.0.1
Eclipse version: Juno
ADT plug-in version: 20.0.3
Platform targeted by your project: ICS
Version of the platform running in the emulator: N/A

STEPS TO REPRODUCE:
1. Install NDK Plugin in Eclipse
2. Set NDK path (Preferences...->Android->NDK->NDK Location)
3. Right-click project->Android Tools->Add Native Support...
4. Install another version of the the NDK, using another path
5. Update NDK path (Preferences...->Android->NDK->NDK Location)
6. Project->Properties->C/C++ General->Paths and Symbols
7. When "Show built-in values" is checked, the old NDK path is showed, not the new NDK path

EXPECTED RESULTS:
这个包含路径应该随NDK移动而更新,至少也要可以用户设定么
The include paths should be updated when the NDK is moved.

OBSERVED RESULTS:
改变NDK位置后无法改变内建的include路径。 (为啥要改变NDK路径呢?我的情况是,我要把工程复制到另一台pc上开发)
Changing the NDK location does not change the built-in include paths

ADDITIONAL INFORMATION:
Attach sample project, etc.
If possible, try to reproduce using ApiDemos.
If the problem is happening in the emulator, consider attaching the output
of "adb bugreport"
Sep 14, 2012
Project Member #1 vs...@google.com
(No comment was entered for this change.)
Owner: vs...@google.com 
Sep 14, 2012
Project Member #2 vs...@google.com
Since this is with 8.1.0 and 20.0.3 where the indexer didn't work anyway, please try with two changes:

1. Use ADT 21 preview or CDT 8.0.2.
2. After changing NDK, right click on the project and do a rebuild index.
Sep 17, 2012
Project Member #3 vs...@google.com
This is actually a bug in the Android NDK plugin. You can use the following workaround until the bug is fixed:
这实际上是android NDK插件的 bug,在bug解决之前你可以用以下方法解决。
1. Close eclipse.
2. Remove the file $workspace/.metadata/.plugins/com.android.ide.eclipse.ndk/<appName>.pathInfo
3. Start eclipse
4. If necessary, do a Index -> Rebuild.
 
     
其实你大可不必remove这个路径文件。你直接修改这个文件就好了,爽吧?
   Sign in to add a comment
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值