Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView 错误解决方案
16lz
2021-01-23
场景:在使用BottomNavigationView 时报错Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
问题:如何解决BottomNavigationView 使用时的报错问题?
解决方案:
build.gradle文件添加如下配置
android{....compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }}
更多相关文章
- [置顶] android中常见的内存泄露场景
- Android 软件更新安装时报错:FileUriExposedException: file:///s
- Android Studio集成友盟分享运行时报Error:Execution failed for
- Android实现浮窗时报的android.view.WindowManager$BadTokenExce
- android sdcard读取时报错PVMFErrNotSupported
- Broadcast使用场景解读
- Android Studio集成Library时报错,终极解决方法
- Android otto 事件总线的使用(使用场景)
- Android数据通信--USB通信的几种方式及使用场景