Possible Duplicate:
Type R is already defined error可能重复:类型R已经定义为错误
Hey guys I have an error under R.Java. Error: The type R is already defined. I'm quite confused over this and have looked for a solution on Google but everything tells me to delete the R.Java file then build the project. The problem is whenever I do the error just comes back.
嘿,我在r。java下有个错误。错误:类型R已经定义。我很困惑,在谷歌上找了一个解决方案,但是一切都告诉我要删除R。然后,Java文件构建项目。问题是每当我做错误的时候就会回来。
1 个解决方案
#1
3
Check if you have an import like this: import com.android.R;
, if so,remove it.
检查是否有这样的导入:import com.android.R;如果有,删除它。
#1
3
Check if you have an import like this: import com.android.R;
, if so,remove it.
检查是否有这样的导入:import com.android.R;如果有,删除它。