Reputation: 9
Good day.
I'm having an error with my android application. I can't delete the codes because the R.java is auto generated by eclipse.
Whenever i delete it, it restores the error. I need help. Here's the code that has the error.
public static final class id {
public static final int 10_00=0x7f080021;
public static final int 90=0x7f08001f;
Upvotes: 0
Views: 115
Reputation: 18509
Variable name cannot be started with number. Search for java code convention.
Upvotes: 1
Reputation: 10349
I think you don't know how to give variable names for resources or IDs in Android XML file.
The variable name should not start with number. It must start with alphabet. It should not contain any special characters which were used as tokens in XML file. (e.g., @, <, >, ?, etc.)
Valid : s12, hi, var_12, etc.
Invalid : 12s, 123, hi, s12#, etc.
The problem in your project is your ID names started with numbers as 10_00 and 90. Modify these to valid variable names.
I hope you understand this.
Upvotes: 2
Reputation: 29199
or if it is showing error in specific file, resolve accordingly. If error is not displaying on specific files but on project, see Problems view in eclipse, and see the error and proceed accordingly. If Still, you are not able to resolve, put your issue.
Upvotes: 0