日食的C文件,而使用JNI,为什么这么惊喜的行为? [英] Surprise behavior of eclipse for C files while using JNI, Why so?
问题描述
我开发一个Android应用程序中,我用大量的JNI code。最近(从上2-3天,我用日食意外的行为真的很生气)它,只要我打开显示我模糊的错误我的.c文件...但是错误,如果我关闭并重新打开该项目消失。见所附的secreen出手。难道是因为我刚刚更新我的Eclipse安装(Eclipse插件的只是更新,我还是在我的旧靛蓝)...
I am developing an Android App in which I use lot of JNI Code.. Recently (from last 2-3 days I am really annoyed by surprise behavior of eclipse) it shows me vague errors as soon as I open my .c file... However errors disappear if I close and reopen the project. See the secreen shot attached. Is it because I just update my eclipse installation (just update of eclipse plugins, I am still on my old Indigo)...
它是一个eclibse错误或有毛病我的设置?
Is it an eclibse bug or something wrong with my setup ?
解决???? 我什么都试过,但指出可能改变偏食的行为......这时候我就知道,我肯定搞砸项目设置错误,由于Eclipse是表现以及在同一个工作区的其他项目。所以,我手动终于重新创建项目,解决myproblem ......虽然问题仍然是开放的有价值的答案,我想我很快会得到一些很好的答案。
Solved ???? I tried everything but noting could change the behavior of eclipse.. By this time I knew that I have certainly messed with the project Settings by mistake, since eclipse was behaving well in other projects of same workspace. So I recreated the project manually and finally that solved myproblem...Though the Question is still open for valuable answers I think soon I will get some good answers..
更新 即使蚀4.2版本也有这个问题.. #frustrating
UPDATE Even eclipse 4.2 release also has this problem.. #frustrating
推荐答案
我发现,删除的项目,比重新导入项目工作区解决了这个问题。不过,我也来知道删除 .cproject 从项目树的文件也可以解决这个问题。固定NDK的路径(窗口 - > preferences - > Android-> NDK)在Eclipse preferences也可以解决这个问题。
I found that deleting the project and than reimporting the project to workspace solves the problem. However I also came to knew that deleting .cproject file from the project tree can also fix this problem. Fixing the NDK path (Window -> Preferences -> Android-> NDK) in Eclipse preferences may also solve the problem.
解决方案2 这可能工作在少数情况下...
Solution 2 Which may work in few cases...
- 右键单击该项目。
- 选择Android的工具 - >修复项目属性
这篇关于日食的C文件,而使用JNI,为什么这么惊喜的行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!