already exists but is not a source folderalready exists but is not a source
来源:互联网 发布:淘宝店铺层级排名 编辑:程序博客网 时间:2024/05/16 18:24
遇到android项目导入出现后重复空包等错误,往往是导入的java编译级别有关,点击项目properties->
java Compiler ->修改Compiler compliance level 一般是1.6。
修改完成clean项目之后,往往还会遇到:
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 Project Properties"
出现这个问题的原因是classpath文件出错,这个文件存在于项目根目录下,是eclipse自动生成的,它定义了你这个项目在编译时所使用的$CLASSPATH,一般不需要手动配置。如果出错,也可手动修改:
- <?xml version="1.0" encoding="UTF-8"?>
- <classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="gen"/>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
- <classpathentry kind="lib" path="libs/ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar"/>
- <classpathentry kind="output" path="bin/classes"/>
- </classpath>
从数据上我们容易看出,上面描述了工程的依赖文件:
源文件的具体位置(kind="src")
运行的系统环境(kind="con")
工程的library的具体位置信息(kind="lib")
项目的输出目录(kind="output")
- already exists but is not a source folderalready exists but is not a source
- gen already exists but is not a source folder
- gen already exists but is not a source folder
- 【project】gen already exists but is not a source folder
- gen already exists but is not a source folder
- gen already exists but is not a source folder
- gen already exists but is not a source folder
- Android : gen already exists but is not a source folder
- gen already exists but is not a source folder
- gen already exists but is not a source folder
- gen already exists but is not a source folder. Convert to a source folder or
- /gen already exists but is not a source folder. Convert to a source folder or rename
- android: 编译时候提示:xxx/gen already exists but is not a source folder
- eclipse导入android项目出错:gen already exists but is not a source folder.
- eclipse res/bin 变成白块。gen already exists but is not a source folder----解决办法
- android gen错误:/albume/gen already exists but is not a source folder.
- Android 开发: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
- 因是子静坐法 笔记
- 因为与关键字冲突而导致的"update语句的语法错误"问题解决方法
- You do not have a license for this Vuser type
- exp导出表结构,不导出表数据。
- Android面试题
- already exists but is not a source folderalready exists but is not a source
- 如何在Eclipse中把添加Tomcat服务器和web项目
- WebLogic10.3下载地址
- 一生的资本
- CFG-ERR-0101
- 如何在delphi中动态生成一个excel表
- Andriod平台显示单位px和dip以及sp指的是什么?
- 字符串存取(CFString)
- java 的PackageExplorer中只显示java工程