Need to Access the Element using Index if all elements have same Resource Id

hi , when i Login to the app and Tap on Image button , i am getting list of menu options like
Home
Shop
Favourites
My Account
Settings

I need to Tap on Settings Menu but Resource Id is same for all the Menus listed with Index.
Need to know how can i Access Settings Menu

xpath=//*[@resource-id=‘’][4]

You can try with list element. Make the mobile element as list element and then try to click which exactly you want to select.

Try using List element.
List menuItems = driver
.findElementsById(“Your resource ID”);
menuItems.get(4).click();

Following Code worked fine
//android.widget.CheckBox[contains(@text,‘Settings’)]