After I add the sound file “do.mp3” to res/raw I get this error:
res\raw\do.mp3:0: error: invalid
symbol: ‘do’
And their isn’t reference to it in the R class. How do I fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The way android generates the R…. values basically makes it so that java reserved keywords cannot be used as file names.
If you look in gen.[project.path].R.java you will see a static int for each resource. The names have to be valid java names since it is a java file.