0

I am working on a project which I saw in a video tutorial. But when I write app:menu="@menu/bottom_navigation_menu" to link customized menu, I have a problem. It is not work properly. This is my code error image.

error code image

Abdul Waheed
  • 4,540
  • 6
  • 35
  • 58
Sahan Pasindu Nirmal
  • 433
  • 4
  • 13
  • 36

2 Answers2

4

You need to add

xmlns:app="http://schemas.android.com/apk/res-auto"

to your main xml element

Chris Gomez
  • 6,644
  • 4
  • 18
  • 39
1

I am assuming you are using drawer layout at your root layout. If that is the case then Add below line of code to your drawer layout

xmlns:app="http://schemas.android.com/apk/res-auto"
Abdul Waheed
  • 4,540
  • 6
  • 35
  • 58