android - Why do I have two R file in gen package? -


my workspace

at first mainactivity.java didn't have error. have configed id button, text fields. , added in com.mikeyaworski.basiccalculations

but don't know have done project has 2 r.java in gen package.

one in package android.support.v7.appcompat. other in com.mikeyaworski.basiccalculations (my config here).

mainactivity.java has error because cannot find r.layout.activity_main (because variable in com.mikeyaworski.basiccalculations package think project use r.java package android.support.v7.appcompat)

what should problem?

try clean built project , check proper r file(i.e com.mikeyaworski.basiccalculations.r) imported, done trick me.hope solve issue :)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -