今日总结:解决在设置android stdio导航栏时遇到的闪退问题

app启动页面后闪退,若在logcat中出现这个问题:

caused by:Attempt to invoke virtual method 'void androidx.appcompat.app.ActionBar.setTitle(java.lang.CharSequence)

是因为找不到标题栏报错,在themes.xml(style.xml)中将parent中的NoActionBar改为其他样式,比如DarkActionBar即可

posted @ 2022-04-27 23:46  stdrush  阅读(325)  评论(0)    收藏  举报