Eclipse.Error.gen already exists but is not a source folder.

在Eclipse ADT来开发Android App时会遇到以下问题:
"myproject/gen already exists but is not a source folder. Convert to a source folder or rename it"

解决办法是:

    1.Right click on the project and go to "Properties"
    2.Select "Java Build Path" on the left
    3.Open "Source" tab
    4.Click "Add Folder..." and check "gen" and "src"


Reference

1.

http://stackoverflow.com/questions/9532045/gen-already-exists-but-is-not-a-source-folder

时间: 2024-10-29 19:10:41

Eclipse.Error.gen already exists but is not a source folder.的相关文章

Gen already exists but is not a source folder

Error info:Gen already exists but is not a source folder. Workaround-1:1. Right click project, and select "Properties"2. Select "Java Build Path"3. Open "Source"4. Click "Add Folder..."5. Select "gen", cli

gen already exists but is not a source folder. Convert to a source folder or rename it.

异常提示: gen already exists but is not a source folder. Convert to a source folder or rename it. 错误原因: 我在导入以前的项目的时候出现了这个异常,原因是.classpath文件(这个文件在eclipse中是看不到的,必须在文件浏览器中才能看到并编辑)出错,导致eclipse不能识别我的src代码文件夹,需要通过设置来指明源码所在的文件夹. 解决办法: 右键项目,选择Properties--Java Bu

gen already exists but is not a source folder ZT

解决方法:1. 右键点击工程,选择 "Properties"2. 选择左边的 "Java Build Path" 3. 打开 "Source" 标签面板4. 点击 "Add Folder..."5. 勾选 "gen" 文件夹,点击OK,点击YES,再点击OK6. 最后右键点击工程,选择 "Andriod Tools" 里面的 "Fix Project Properties&qu

导入别人的Android项目,提示 /Libs/gen already exists but is not a source folder. Convert to a source folder or rename it

解决方法: 遇到这个问题的解决方法: 1. 右键点击工程,选择 "Properties" 2. 选择左边的 "Java Build Path" 3. 打开 "Source" 标签面板 4. 点击 "Add Folder..." 5. 勾选 "gen" 文件夹,点击OK,点击YES,再点击OK 6. 最后右键点击工程,选择 "Andriod Tools" 里面的 "Fix Pro

Eclipse --Type /com.xx.app/gen already exists but is not a source folde解决方案

两种解决方案: Two actions, first: 1.Right click on the project and go to "Properties" 2.Select "Java Build Path" on the left 3.Open "Source" tab 4.Click "Add Folder..." and check "gen" and "src" second

Eclipse中的创建maven项目,无法添加src/main/java等source folder

通过Eclipse创建Java Web项目,目录结构如下: 默认是只有src/main/resources 这个source folder 按照maven目录结构,还需要src/main/java ;  src/test/java; src/test/resources 等 在eclipse中创建这些source folder时,会出现下面的情况: 解决如下: 一. 打开Eclipse的Navigator目录,依次创建missing的 source folder即可. 不知道怎么打开的,可以看我

Eclipse:Error:could not find java SE Runtime Environment/Error: could not find java.dll

发生这种错误的原因是什么呢,正常情况下都是你的系统中装了两个版本的JDK,比如装了1个1.6版本的JDK,然后再安装1个1.7版本的JDK,这个时候你打开eclipse的时候就会弹出一个对话框,提示:Error:could not find java SE Runtime Environment. 这个时候你也可以在命令行中输入"java -version",可以看到相关的错误提示: 解决方式有三种: 1.卸载掉其中一个版本,如果卸载掉的版本是已经配置了环境变量的,记得重新配置. 2.

Eclipse 问题 A resource exists with a different case

在使用Eclipse进行开发的时候,出现了如下的问题: Description Resource Path Location Type The project was not built due to "A resource exists with a different case: '/SeenTaoImp_zhV2/bin/seentao'.". Fix the problem, then try refreshing this project and building it si

Eclipse Git下载问题:Internal error; consult Eclipse error log

在使用Git下载代码时偶尔会遇到  Internal error; consult Eclipse error log 这个报错. 简述下个人解决思路: Eclipse 错误日志报错为:org.eclipse.equinox.security.storage.StorageException: Secure storage was unable to retrieve the master password. 解决方法: 1. Windows -> preferences- > General