On Sun, Aug 21, 2011 at 9:48 PM, MaxMumford <[email protected]> wrote: > Hi all, > > I have 400 or so png images named 001, 002 ... 400 in each of the > drawables folders and when they are picked up by R.java class I get > the following error for the files named 001 to 100: > > Syntax error on token "001", invalid VariableDeclaratorId >
The filenames are used as the base for class/variable names in the R class that Eclipse automatically generates. Java identifies can't start with a number, hence the error. Rename your files to img001 or anything that starts with a letter or underscore. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

