[postlink]https://iamdaowner.blogspot.com/2012/06/fixed-r-cannot-be-resolved-to-variable.html[/postlink]I encountered this problem when I was making a new project on my eclipse workspace. I got a red underline on "R" in this part of my code
So here's what I did to fix this issue. Go to Project Properties > Java Build Path > TickAndroid Version Checkbox
Then if your workspace does not build automatically…
Properties again > Build Project
After that, all went back to normal. :)
setContentView(R.layout.main);
So here's what I did to fix this issue. Go to Project Properties > Java Build Path > TickAndroid Version Checkbox
Click to enlarge. |
Then if your workspace does not build automatically…
Properties again > Build Project
After that, all went back to normal. :)
0 comments:
Post a Comment