开发者

Should I be importing com.myapp.R into my activities?

IntelliJ is moaning if I don't have the following imports in my activities :

import com.jameselsey.apps.romandroid.R;

I've got several other apps which don't require an explicit import of the R file, however this one will not compile if I remove it, I get the following error :

\src\main\java\com\jameselsey\apps\romandroid\activity\RomanToArabicConverterActivity.java:[31,24] package R does not exist

Understandably there are various other questions on SO on how to resolve this (none of which appear to work for me), but my question is : Doe开发者_Go百科s it really matter? Is there any reason why I should be wildly concerned here, or just go ahead and import it?

Tripled checked all my config xml, can't find anything that would prevent R being regenerated, mvn clean install still failing...


I would go ahead and import it. I don't believe you should be concerned.


i wouldn't worry about it. On a side note. If you want to regenerate R, you need to do a clean build after ensuring that there are no errors in the xmls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜