'Material BottomNavigationView app:menu doesnt work

I'm doing everything according to the document on the developer.android.com, but I can't see the menu. I think the app:menu line is not working. When I enter the height manually 50dp, the area grows but it is empty.

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">
    
    <com.google.android.material.bottomnavigation.BottomNavigationView
        android:id="@+id/bottom_navigation"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:menu="@menu/bottom_navigation_menu" />

</androidx.constraintlayout.widget.ConstraintLayout>

Menu

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:id="@+id/list_page"
        android:icon="@drawable/ic_baseline_format_list_bulleted_24"
        android:title="@string/list" />

    <item
        android:id="@+id/generator_page"
        android:icon="@drawable/ic_outline_pin_24"
        android:title="@string/generator"/>

    <item
        android:id="@+id/settings_page"
        android:icon="@drawable/ic_baseline_settings_24"
        android:title="@string/settings"/>

</menu>

When I enter 50 dp to the manual height, the menu looks empty like this

https://i.stack.imgur.com/ul6bN.png

Can you help me please?



Solution 1:[1]

try to change gradle dependencie on implementation 'com.google.android.material:material:1.4.0'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 KirillBabaev