Error retrieving parent for item: No resource found that matches the given name 如何解决

来源:互联网 发布:2016奥运会网络直播 编辑:程序博客网 时间:2024/06/11 19:56

项目编译过程中报错

<resources>    <style name="Base.TextAppearance.AppCompat.Widget.Button.Borderless.Colored" parent="android:TextAppearance.Material.Widget.Button.Borderless.Colored"/>    <style name="Base.TextAppearance.AppCompat.Widget.Button.Colored" parent="android:TextAppearance.Material.Widget.Button.Colored"/>    <style name="TextAppearance.AppCompat.Notification.Info.Media"/>    <style name="TextAppearance.AppCompat.Notification.Media"/>    <style name="TextAppearance.AppCompat.Notification.Time.Media"/>    <style name="TextAppearance.AppCompat.Notification.Title.Media"/></resources>

编译过程中提示
这里写图片描述

也就是你当前的sdk版本不支持,将sdk版本往大改,重新编译。

android {   ...    compileSdkVersion compileSdkVersion: 25    buildToolsVersion buildToolsVersion: "25.0.2",    defaultConfig {        ...         minSdkVersion: 15         targetSdkVersion : 25        ...        }}

问题解决。

阅读全文
0 0
原创粉丝点击