首页 > 代码库 > Type R is already defined error
Type R is already defined error
今天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.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。