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 后修改的地方没有生效,

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

Type R is already defined error

时间: 2024-11-11 19:03:59

Type R is already defined error的相关文章

Render QGraphicsItem on QPixmap: aggregate 'QWidget w' has incomplete type and cannot be defined

Render QGraphicsItem on QPixmap: aggregate 'QWidget w' has incomplete type and cannot be defined #include <QWidget> and #include <QStyleOptionGraphicsItem> should fix the compile error you are getting. 常见错误: 头文件未包含 Render QGraphicsItem on QPix

(Xaml) Type &#39;DeviceA&#39; is not defined.

修改了一些Xaml, 始终提示 Compiler error(s) encountered processing expression "deviceA.B".Type 'DeviceA' is not defined. 查看错误信息指向的 Line,并没有发现异常. 和编译成功的Xaml比较后发现需要添加Refence. 修改前: <mmtas:UsingSequencesap2010:WorkflowViewState.IdRef="UsingSequence_1&

Collection has neither generic type or OneToMany.targetEntity() defined

Collection has neither generic type or OneToMany.targetEntity() defined 在一对多双向关联关系里,Set如果用泛型,就需要在@OneToMany指明targetEntity多方的实体类,要不就不要用泛型. Collection has neither generic type or OneToMany.targetEntity() defined,布布扣,bubuko.com

R安装package报ERROR: a &#39;NAMESPACE&#39; file is required

R安装package报错: [[email protected] mysofts]# R CMD INSTALL trimcluster_0.1-1.tar.gz * installing to library '/usr/local/lib64/R/library' WARNING: omitting pointless dependence on 'R' without a version requirement * installing *source* package 'trimclus

android The public type classname must be defined in its own file 报错

The public type classname must be defined in its own file classname  为类名 错误提示,公用的类必髯有自己拥有独立.java文件 解决方法: 在工程中新建一份.java文件,然后把类重新定义为公用类public 解决方法2: 如果你的类只需用在当前,则可更改为私有类,即将public改为private

The type &#39;System.Object&#39; is defined in an assembly that is not referenced

记录一个错误,报 The type 'System.Object' is defined in an assembly that is not referenced,[System.Runtime] 配置文件加上后仍报错! <system.web> <compilation debug="true" targetFramework="4.5"> <assemblies> <add assembly="System.

R语言学习笔记-Error in ts(x):对象不是矩阵问题解决

1.问题 在对时间序列进行拟合操作时,发生:Error in ts(x):对象不是矩阵的错误,而直接在arima()函数中使用时没有问题的. > sample<-c2 > sample [1] 0.00 0.00 0.00 0.00 0.00 0.00 0.06 0.09 0.20 0.09 0.08 0.14 0.14 0.23 [15] 0.08 0.06 0.12 0.20 0.14 0.11 0.20 0.14 0.17 0.15 0.18 0.15 0.20 0.12 [29]

打开已存在 Android项目及常见的问题

Eclipse 打开已存在 Android项目及常见的问题 1.  点击菜单"File"-- "Import",会弹出 Import 对话框: Android项目及常见的问题" name="image_operate_84841359866226255" alt="打开已存在 Android项目及常见的问题" src="http://s6.sinaimg.cn/mw690/93dc666cgd4ca6e4e

Effective Modern C++翻译(5)-条款4

条款4:了解如何观察推导出的类型 那些想要知道编译器推导出的类型的人通常分为两种,第一种是实用主义者,他们的动力通常来自于软件产生的问题(例如他们还在调试解决中),他们利用编译器进行寻找,并相信这个能帮他们找到问题的源头(they're looking for insights into compilation that can help them identify the source of the problem.).另一种是经验主义者,他们探索条款1-3所描述的推导规则,并且从大量的推导情