I am on chapter 4 defining PuzzleView, I did a Project > Clean.. and suddently, R.java cannot be resolved. send halp please
You probably have a problem in one of your layout files or other XML files. Until those problems are resolved R.java cannot be re-generated. So inspect the build log, it should highlight the problems and when they are all fixed R.java will be created again
Well, I believe the problem is in my colors.xml. I added it recently for the PuzzleView class, and it was giving me an error, so I decided to try Project<Clean, then I ran into this.
My colors.xml file is below#ffe6f0ff #ffe6f0ff #64c6d4ef #6456648f #ff000000>/color> #64ff0000 #6400ff80 #2000ff80 #64ff8000
Hm, well. My post above allowed me to locate my error. My syntax on one of the colors was wrong. But now I am brought back to my older error, it is stating that colors cannot be resolved, and it is not defined in R.java. Any suggestions?
Well, after further exploration, I found that it is defined as “color” instead of “colors”. I must have renamed it somewhere along the road.
The devil is in the detail. Sounds like you are moving on again though.
|You must be logged in to comment|