Search code examples
javaandroideclipser.java-file

R.java gives an error


My R.java gives an error

public static final int 1405308882_more = 0x7f020000

Don't know or understand why its giving this error, i regenerate the R.java file and it still gives me the following above. and when i hover my mouse over it, it says

underscore have to be located within digits

I tried editing it but when it compiles it still regenerate the same name variable.

Please before anyone starts rating this question as usless take your time to understand it I don't have error in any of my java files either in the src folder or layout folder every thing else is fine its just the R.java that generates that constant so please understand before you jump to conclusions. Thank you.


Solution

  • It wasn't the XML file that was the issue. It was an image in the resource folder with a name that didn't follow the standard naming rules and thus made the R.java to generate that error.