The Android studio preview interface reports an error render problem

When Android studio 3.1.2 is used for the first time, it is not displayed in the preview interface, and an error render problem is reported: failed to load appcomcat actionbar with unknown error, as shown in the following figure

  

The method found on the Internet is to change the parent attribute value of the style tag in the style.xml file to

parent="Base.Theme.AppCompat.Light.DarkActionBar"

Screenshot before change:

 

Screenshot after change:

  Pro test is effective

Preview:

 

Similar Posts: