Android: R.java: Error Expected
Answer : It sounds like you have accidentally defined a menu item in your XML with an id of =action_setting . For example: <menu> <item android:id="@+id/=action_settings" /> </menu> Remove the = from your menu XML and you should be good to go. I had the same problem, because I defined a string without name in my resources. like: <string name="">some text</string>