android - Eclipse can't find generated ids from R.java -


i have strange problems eclipse (kepler) , r.java file. symptom (but not always), eclipse either doesn't generate r.java file @ all, or if generate it, marks of ids not resolvable in source. though ids show in r.java file. i've been using project > clean million times now, behaviour keeps coming back. obvious things restarting eclipse not seem change anything. here's example:

(gameactivity.java) protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.game); //  "game" marked not resolvable }  (r.java) public final class r {     public static final class layout {         public static final int game=0x7f030000;         public static final int main=0x7f030001;     } } 

any ideas going on here?

after find , fix wrong code, try clean projects , generate again.this because have 1 or more errors in code.

please verify project. after find , fix wrong code should work


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -