Android 无法分析突出显示的文件\u text\u material.xml

Android 无法分析突出显示的文件\u text\u material.xml,android,android-studio,Android,Android Studio,我每次运行应用程序都会遇到这个问题。我一开始一直在尝试修复这个cus,它说失败的cus有其他故障,我已经将Android版本改为 API 21:Android API 21 渲染并获取此错误 Failed to parse file C:..\AppData\Local\Android\sdk\platforms\android-23\data\res\color\highlighted_text_material.xml 突出显示的_text_material.xml如下所示 <?xm

我每次运行应用程序都会遇到这个问题。我一开始一直在尝试修复这个cus,它说失败的cus有其他故障,我已经将Android版本改为

API 21:Android API 21

渲染并获取此错误

Failed to parse file
C:..\AppData\Local\Android\sdk\platforms\android-23\data\res\color\highlighted_text_material.xml
突出显示的_text_material.xml如下所示

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:alpha="0.4"
          android:color="?attr/colorAccent" />
</selector>


有人遇到过同样的问题吗?

如果您看到路径
C:..\AppData\Local\Android\sdk\platforms\Android-23\data\res\color\highlighted\u text\u material.xml
,它使用的是Android-23,所以您可能需要将api更改为23并尝试编译。

我已经用xml文件进行了编辑…对,明白了。。。谢谢你,伙计。我已经修正了一些其他的错误,但只是被这个愚蠢的错误弄糊涂了。。。谢谢你的帮助