Cannot resolve method ‘setupWithNavController…’

You’ve casted your BottomNavigationView incorrectly.

Replace

BottomNavigationItemView bottomNavigationView = findViewById(R.id.bottomNavigationView);

With

BottomNavigationView bottomNavigationView = findViewById(R.id.bottomNavigationView);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top