Right click on the res folder while you’re in Android Studio, hover over new, then select Android Resource Directory. It will come up with a box which will probably have Directory name & Resource type both set to ‘values’. What you want to do is click on the down arrow to the right of the Resource type box, and select ‘menu’. The Directory name will also have changed to ‘menu’. Now click the OK button. Now you have your menu folder.
Next you need to create the menu_main.xml file. Right click on the menu folder, hover over new, then click on Menu resource file. It will open a box asking for the name of the file. Type in menu_main (you don’t need to put the .xml at the end, it will do that for you.
So now you need to copy and paste this code into your new file:
Then to fix the actions_settings string :
<resources> <string name="app_name">Court Counter</string> <string name="action_settings">