1.界面预览时出现提示如下信息:
Rendering Problems
The following classes could not be found:
- android.support.v7.internal.app.WindowDecorActionBar
(Fix Build Path, Create Class) Tip: Try to build the project
Tip: Try to build the project.
截图显示如下:
解决方法:
把你的values/style文件中theme改一下,即在Theme.AppCompat.Light.DarkActionBar前面加上Base. 如下图所示: