Eclipse Android 开发常见错误

来源:互联网 发布:爱趣彩 可以网络购彩 编辑:程序博客网 时间:2024/04/29 04:16

1、全局搜索时出错。

大家都知道,Eclipse可以用Ctrl+ H 进行全局搜索,但今天搜索时出现了一个问题:

Problem Occurred

‘File Search’ has encountered a problem. Problems encountered during text search.

上图:


点击Details>>

可以看到

Problems encountered during text search.
File '/XXX/file.xxx' has been skipped, 

problem while reading: ('Resource is out of sync with the file system: 'XXX/file.xxx'.').
Resource is out of sync with the file system: 'XXX/file.xxx'.

Resource is out of sync with the file system: 


说白了就是由于你在Eclipse之外对project进行了修改

解决办法是,选中Project  摁F5刷新,或者右键Refresh就行。


有些人说,刷新后还是有错,这可能的原因是:

你的workplace有多个项目,你只刷新了当前项目,可以一个一个全部刷新过后就好了。

什么?一个一个刷太慢? 

那可以再刚才你点Details>>的详细信息里看到具体哪个项目的文件被Eclipse之外修改了

找到那个项目或那些项目,Refresh即可。


2、


Android Lint 是 ADT16之后引入的对android工程源代码进行扫描和检查的工具。

有些人认为和这个工具有关。

但后来发现,这可能是由于你64位的机器装了32位的Eclipse,不兼容引起的问题。


0 0
原创粉丝点击