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", click "OK", Click "YES",and click "OK"
6. Right click project, select "Android Tools"-->"Fix Project Properties"

Workaround-2:
This error‘s root cause is classpath issue,and look likes following format.
-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
-----------------------------------------------
You can modify this file‘s following tags:
------------------------------

kind="src"

kind="con"

kind="lib"

kind="output"

-------------------------------------------------

Gen already exists but is not a source folder

时间: 2024-10-08 20:49:08

Gen already exists but is not a source folder的相关文章

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

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 th

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下,package,source folder,folder的区别

在eclipse下,package,source folder,folder都是文件夹. 它们的区别如下:package:当你在建立一个package时,它自动建立到source folder下,也只能建立在这个目录之下. source folder:存放java源代码的文件夹,当然也包括一些package文件夹,还可以包含其他文件.项目构建后,source folder里面的java自动编译成class文件到相应的bin文件夹中,其他文件也会移到到相应的目录下. folder:里面可以放入任何

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 package,source folder,folder差别及相互转换

在eclipse下, package, source folder, folder都是目录. 它们的差别例如以下: package:当你在建立一个package时,它自己主动建立到source folder下,也仅仅能建立在这个文件夹之下. source folder:存放java源码的目录,当然也包括一些package目录,还能够包括其它文件. 项目构建后,source folder里面的java自己主动编译成class文件到对应的/web-inf/classes文件夹中,其它文件也会移到/w

folder、source folder、package 区别与联系

在eclipse下,package,source folder,folder都是文件夹. 它们的区别如下:  package:当你在建立一个package时,它自动建立到source folder下,也只能建立在这个目录之下. source folder:存放java源代码的文件夹,当然也包括一些package文件夹,还可以包含其他文件.  项目构建后,source folder里面的java自动编译成class文件到相应的/web-inf/classes文件夹中,其他文件也会移到/web-in