Failed to load AppCompat ActionBar with unknown error AndroidsStudio不能正常显示

把style.xml文件中的一句话改一下就可以正常显示了

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
改成

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

详细原因可以参考一下https://blog.csdn.net/qq_36332133/article/details/80808123

猜你喜欢

转载自blog.csdn.net/qq_36856047/article/details/82696846