首页 > 其他 > 详细

Type R is already defined error

时间:2014-07-06 18:04:59      阅读:357      评论:0      收藏:0      [点我收藏+]

今天import a project, 编译时提示Type R is already defined error, google, stackoverflow,  找到一个solution, 

"The type R is already defined"

That‘s the message you get in Eclipse if you try to build the Funambol Android Sync Client. Reason is that you have checked two Builders that try to generate the same class. You just have to uncheck the Java-Builder from Project->Properties->Builders. Then the application even works fine in the Emulator.

去掉Java-Builder 时, 出现一个warning, 照做后, 编译ok 了, 但是debug 过程中出现wierd错误, 比如clean, rebuild 后修改的地方没有生效,

都要抓狂了~@!@#$@#$,  后来想起那个warning, 果断恢复原来设置, 再google, 发现原来时src 目录下 也有个 R.java 导致的, delete 后clean & rebuild, test ok. 

Type R is already defined error,布布扣,bubuko.com

Type R is already defined error

原文:http://www.cnblogs.com/vjoke/p/3825097.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!