Search code examples
androidmavenintellij-ideaandroid-2.1-eclair

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 : Does 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...


Solution

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