错误内容:
myproject/gen already exists but is not a source folder. Convert to a source folder or rename it
此问题出现的原因主要是Build Path的问题。我在进行Git协作开发的时候删除了.classpath,导致问题的出现。解决方案如下:
- 右键项目Build Path->Configure Build Path…
- 选择Source标签,添加文件夹“Add Folder…”,选择gen和src文件夹,然后点”Apply”即可
注:开发环境,eclipse neon + android andmore
参考文献:
http://stackoverflow.com/questions/9532045/gen-already-exists-but-is-not-a-source-folder