Eclipse常见错误

来自个人维基
跳转至: 导航搜索
Invalid project description 
------>detail: ->>> xxxx(project path) overlaps the location of another project: 'xxxx' 

此问题的原因是Import的项目在Work Direcotry(安装时设定的项目文件夹)中:因为Android项目在执行Import时,会在Work Direcotry(安装时设定的项目文件夹)中创建对应的文件夹

解决方法一:将项目移至别的文件夹再执行Import

解决方法二:File -> Import -> General(这里选择普通项目而非Android) -> Existing project into Workspace

Errors occurred during the build.
Errors running builder 'Android Pre Compiler' on project 'xxx'.
java.lang.NullPointerException

原因:svn等其他非项目文件干扰,新版本的ADT在编译时会严格检查不识别的文件/文件夹,不通过则报此错误

解决办法一:删除所有.svn和其他非项目文件...

解决办法二:

1、安装eclipse svn插件(Help > Install new Software > Work with your Eclipse version site > 'Collaboration' > 选择 'Subversive SVN JDT Ignore Extensions' 和 'Subversive SVN Team Provider')

2、使用上述插件重新checkout一份代码

点击 Eclipse perspective.bmp -> SVN Repository Explorer -> New Repository Location ...,其它的不用我多说了......

参考资料:http://stackoverflow.com/questions/14455018/eclipse-android-errors-running-builder-android-pre-compiler-on-project?rq=1