2016-03-21 18 views
3

私はこのアプリケーションを実行して、毎回この問題を抱えています。私が最初にこのCUSを修正しようとしてきた、それが言うには、その他の障害のCUS失敗したと私はAPI 21ファイルhighlighted_text_material.xmlの解析に失敗しました

にAndroidのバージョンを変更しました:AndroidのAPI 21

レンダリングして、このエラーを得ました。

Failed to parse file 
C:..\AppData\Local\Android\sdk\platforms\android-23\data\res\color\highlighted_text_material.xml 

highlighted_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> 

の下に示されていますか?

+0

xmlファイルを編集しました... –

答えて

2

パスがC:..\AppData\Local\Android\sdk\platforms\android-23\data\res\color\highlighted_text_material.xmlの場合、アンドロイド23を使用しているため、おそらくapiを23に変更してコンパイルを試みる必要があります。

+0

右にあります。ありがとうございます。私はいくつか他のものを修正しましたが、ちょうどこのばかげたエラーと混乱して...助けてくれてありがとう –

+0

確かに;) –

関連する問題