本文介绍了渲染问题下面类找不到:android.support.v7.internal.app.WindowDecorActionBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么原因导致Android Studio中?

布局preVIEW以下错误
解决方案

The Actionbar has been deprecated and replaced by Toolbar. That being said, you can do the following if you want to continue using Actionbar for now:

  1. Open styles.xml in the values folder inside the res folder.
  2. Add the word Base to the beginning of the theme name so that it reads "Base.Theme.AppCompat.Light.DarkActionBar"

I had the same issue today and this solution worked for me. FYI I am in Android Studio though, but hopefully the solution is similar for Eclipse.

FYI here is a decent blog post on replacing the Actionbar with the Toolbar for when you are ready to do so: https://blog.xamarin.com/android-tips-hello-toolbar-goodbye-action-bar/

这篇关于渲染问题下面类找不到:android.support.v7.internal.app.WindowDecorActionBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:08
查看更多