Render Android studio 2.3.3:文件不存在或不是文件

Render Android studio 2.3.3: File does not exist or is not a file

我在 Android Studio 中渲染项目时遇到问题。它说文件不存在或不是文件,但它存在并且是文件。

我已经尝试了所有方法,将 SDK 级别降低到清单上的级别。我也换了主题,但是没有任何反应,现在连模拟器都打不开,说已经试了300秒了

请帮忙。我会附上图片。

This is the render problem

Here is the file that "doesn't exist" according to the problem

清单中的 SDK 版本是 22,这就是我正在使用的版本:

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22" />   

这是我调用此文件的布局代码:

android:id="@+id/lyHeader"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@xml/header_color"
android:paddingBottom="5dip"
android:paddingTop="5dip" >

文件内容如下:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#71A2C7" />
</shape>

您已将 Drawable 文件(文件包含 shape 标记)放入 xml 文件夹,因此 Android Studio 对其解释不正确。只需将其移动到 drawable 文件夹