Android项目遇到"TheType R is already defined"
2014-02-19 17:45
375 查看
摘:在低于SDK1.5版的项目时,有时会在Eclipse下面的Problems中看到"The Type R is already defined"的提示,表示R被重复定义了,通常是由于旧版SDK与新版SDK生成R.java的文件夹不同所致。
这时只要打开"src"目录,把该目录中最下层由旧SDK生成的"R.java"文件删除,只留下"gen"目录下的"R.java"文档即可
这时只要打开"src"目录,把该目录中最下层由旧SDK生成的"R.java"文件删除,只留下"gen"目录下的"R.java"文档即可
相关文章推荐
- 编译器&调试---Android项目遇到"TheType R is already defined"
- 编译器&调试---Android项目遇到"TheType R is already defined"
- Android项目遇到"TheType R is already defined"
- Android项目The type R is already defined
- 错误 the type "xxxx" is defined in an assembly that is not refernced.You must add a reference to assem
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- Android The Type R is already defined
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- eclipse 3.4.2创建完项目时。报错Project "HelloWorld” is missing required source folder: ‘gen’The project could not be built until buid pat
- the type R is already defined
- Android RecyclerView的案例讲述和"The hierarchy of the type ViewHolder is inconsistent"错误解决
- Android 源码编译问题:Your version is: java version "1.6.0_27".The correct version is: Java SE 1.6.
- Eclipse建立Web项目出现 Runtime "Apache Tomcat v7.0" is invalid. The JRE could not be found. Edit the serve
- what is the mean of "GPRINT Type" in cacti
- Android JS桥交互("Uncaught ReferenceError: xxx is not defined or xxx has no method")
- Description Resource Path Location Type The processing instruction target matching "[xX][mM][lL]" is
- Android开发(25) 如何解决Attribute "XXX" has already been defined
- 解决eclipse中运行web项目时弹出的"Port 8080 required by Tomcat v7.0 Server at localhost is already in use... "
- The type R is already defined 错误解决办法