Skip to content Skip to sidebar Skip to footer

Why Does This R Glitch Happen(eclipse Android Java)?

This is a continuation off of Why is my layout unable to be resolved? (Android/Java) (read the comments on the 1st answer) because I need to post a large amount of code, and doing

Solution 1:

I fixed it! So I had this file with the name "Gangam Style.mp3" in the raw folder(I have no clue how it got there). I noticed an error saying that was an invalid name. I went into the folder and removed that file, and all of the errors went away. I guess having a bad file kind of messed with Eclipse and for whatever reason, it couldn't find R.

To anyone else who gets the error that R can't be resolved, make sure you aren't importing "android.R" and make sure you don't have any file with an invalid name in any of your folders.

Post a Comment for "Why Does This R Glitch Happen(eclipse Android Java)?"