rasik141
rasik141

Reputation: 23

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.

Upvotes: 1

Views: 139

Answers (3)

Abdulla Shoshaa
Abdulla Shoshaa

Reputation: 101

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.

Upvotes: 0

Atiar Talukdar
Atiar Talukdar

Reputation: 746

from xml view, check your right side, there was an option for for "Preview"

Upvotes: 0

Lennon Spirlandelli
Lennon Spirlandelli

Reputation: 3193

I think it's not a final solution, but changing the Theme in design view from the base project theme to anything else allows it to build.

Upvotes: 1

Related Questions