Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/198.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Studio渲染问题(无预览)_Android_Android Studio_Rendering - Fatal编程技术网

Android Studio渲染问题(无预览)

Android Studio渲染问题(无预览),android,android-studio,rendering,Android,Android Studio,Rendering,我刚刚安装了Android Studio,我是应用程序编程的初学者。当我第一次启动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 p

我刚刚安装了Android Studio,我是应用程序编程的初学者。当我第一次启动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

此错误的原因可能是什么?我应该如何修复它?

在res/values/styles.xml中更改AppTheme父级解决了此问题。替换

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

在预览窗格中将API级别从22降级到21


谢谢sasikumar,我现在可以清楚地看到预览了。非常感谢你的帮助!:D
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>