Magic behind R.java file
android, eclipse, eclipse-plugin, r.java-file
Solution
I found the problem - I have created a 9patch image with the patch area defined only on the Y axis (I was trying to prevent resizing on the other one).
The question remains: Why isn't there a warning about the error? Or if there is - where is it buried?
Problem
Recently I have been having quite some problems with R.java file. Now I have decided to do a backup and delete the file to see what happens. Nothing happened, so I created an empty R.java file and hoped for the best. Now Eclipse seems to figure out that the file was tampered with and even issues a warning: ``` R.java was modified manually! Reverting to generated version! ``` And that's all there is. I tried building it manually but got no results. So, I have two questions: - what should I do to force Eclipse to regenerate the file - what is happening here? How is the file created, where is the code that is generating the file? I would appreciate any help. As usual the problem occurred just a few days before the deadline :)