【ERROR】gen already exists but is not a source folder. Convert to a source folder or rename it
This is a common error and you can solve it following these steps:
Right click on the project and go to “Properties”
Select “Java Build Path” on the left
Open “Source” tab
Click “Add Folder…”
Check “gen” folder and click Ok and Ok again
Again right click on the project and in the “Andriod Tools” click on “Fix Project Properties”

本文提供了解决Android项目中遇到的常见错误'genalreadyexistsbutisnotasourcefolder'的方法。通过右击项目、选择‘Properties’、进入‘JavaBuildPath’,然后在‘Source’选项卡下添加‘gen’文件夹,并确保它作为源文件夹。最后,使用‘FixProjectProperties’来修复项目属性。遵循这些步骤即可解决该问题。

被折叠的 条评论
为什么被折叠?



