简体   繁体   中英

Android Studio Rendering Problems (No preview)

I have just installed Android Studio and I am a beginner in app programming. I got the following error when I first launched the Android Studio.

Rendering problems
The following classes could not be found
- android support.v7.internal.widget.ActionBarOverlayLayout (Fix_Build_Path, Edit_XML, Create_Class)
Tip: Try to build the project

What might be the cause of this error and how should I fix it?

Changing AppTheme parent in res/values/styles.xml resolved this problem. Replace

  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
   <!-- Customize your theme here. -->
  </style>

with

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>

Downgrade API level from 22 to 21 in Preview Pane

在此处输入图片说明

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