解决错误:/gen already exists but is not a source folder. Convert to a source folder or rename it
来源:互联网 发布:java jetty wsdl 编辑:程序博客网 时间:2024/04/29 03:28
遇到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")
0 0
- 解决错误:/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
- 解决错误:/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
- 解决错误:/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
- 错误:/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的错误。
- /gen already exists but is not a source folder. Convert to a source folder or rename
- 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
- 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 的解决办法
- 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
- 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 问题
- gen already exists but is not a source folder. Convert to a source folder or rename it.
- ADB 命令记录
- NSString写入文件,append模式实现
- 希尔排序
- rt3070—ap的移植
- 启元商品资料数据同步
- 解决错误:/gen already exists but is not a source folder. Convert to a source folder or rename it
- [leetcode] Longest Substring Without Repeating Characters
- Oracle性能优化学习笔记之选择最有效率的表名顺序
- HTML 中的<div>
- fdghf的法规和高房价范德萨发生飞规划局
- 喝酒可理解和规范多少
- oracle远程连接(PLSQL,SQL developement + Oracle数据库 + 客户端 + 远程连接设置
- 购房计划开好了解放韩国
- 免费的pdf转换器下载