简体   繁体   中英

I am getting rendering error in the latest android studio when trying to view the preview of an activity

Rendering Problems The following classes could not be instantiated:

android.support.v7.internal.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache)

What can be done to solve this? I can't get any preview for my XML coding.

我认为这不是最终解决方案,但是将设计视图中的Theme从基础project theme更改为其他任何内容都可以构建它。

从xml视图,检查你的右侧,有一个选项为“预览”

It happens to me too,

the only ways I found to fix this issue is: at the top of Designer window

  1. Change the theme.

OR

  1. Change the API to 21 instead of 22.

the second choice is better because you will still able to see the same theme from API 22.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM