您的位置:首页 > 移动开发

Error retrieving parent for item: No resource found that matches the given name 'android:TextAppeara

2016-02-01 23:44 751 查看
http://bbs.csdn.net/topics/391813146

D:\Android\project\MyApplication4\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0\res\values-v23\values-v23.xml

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

Error:Execution failed for task ':app:processDebugResources'.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\SDK\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1


然后弹出 values-v23.xml 文件,估计红色地方的问题

<style name="Base.TextAppearance.AppCompat.Widget.Button.Inverse" parent="android:TextAppearance.Material.Widget.Button.Inverse"/>

<style name="Base.Widget.AppCompat.Button.Colored" parent="android:Widget.Material.Button.Colored"/>

关键这文件还不能改,百度了一晚上都搞不定,好想shi,连新建项目都出错还怎么玩

引用 4 楼 comeheress 的回复:

改下build.gradle文件,将里面的compileSdkVersion改为23即可
解决了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: