Android Layout Error: Missing BottomNavigationView in @layout/frame
It seems that the layout file '@layout/frame' does not have a view with the id 'bottomNavigationView' declared in it.
To fix this issue, you need to make sure that the 'bottomNavigationView' is defined in the '@layout/frame' layout file. You can add the following code to the layout file:
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id='+id/bottomNavigationView'
android:layout_width='match_parent'
android:layout_height='wrap_content'
app:menu='@menu/bottom_navigation_menu' />
Make sure to adjust the attributes according to your requirements.
原文地址: https://www.cveoy.top/t/topic/PaU 著作权归作者所有。请勿转载和采集!