Skip to content Skip to sidebar Skip to footer

Bottomnavigationview Does Not Exists

I am trying to use navigationeditor with bottom navigation view, but it seems that bottomnavigationview is only causing the issue. This is my xml :

Solution 1:

Because you have migrated to AndroidX...try using com.google.android.material.bottomnavigation.BottomNavigationView instead

<com.google.android.material.bottomnavigation.BottomNavigationView
        android:id="@+id/bottom_navigation"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="0dp"
        android:layout_marginEnd="0dp"
        android:background="?android:attr/windowBackground"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:menu="@menu/navigation" />

Solution 2:

ON MAC CMD+SHIFT+R

Then replace all occurance of

android.support.design.widget.BottomNavigationView

With

com.google.android.material.bottomnavigation.BottomNavigationView

Post a Comment for "Bottomnavigationview Does Not Exists"