So I am going through the Android development tutorial and I have run into an early problem when creating menus. I created a folder under res called menu and put in game_menu.xml as I was told.
But the line inflater.inflate(R.menu.game_menu, menu); is telling me that R.menu cannot be resolved. As I probably shouldn’t edit R.java by hand, I would appreciate some help on what to do.
Did you build the project after adding game_menu.xml? If so, you should be able to look at the R file and find R.menu.game_menu. You definitly don’t want to hand edit it.
Did you import R into the java file where you are trying to inflate it?