No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse
2015-11-30 20:19
513 查看
/路径/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xml
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
这种类似的数据错误,一定要注意一下流程,
0、问题的起因,是因为我自己使用到了appcompat
1、values-v23.xml这里23就是API的版本,compileSdkVersion 23 ,buildToolsVersion '23.0.1'
2、manifest文件中, <uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="23" />
配置相同就好。
3、同步一下,我这边问题解决了,不知道你有没有解决。
解释:
这是API 23(Android 6.0)中的资源文件,而查看build.gradle,编译的SDK只是为21,我们可以尝试将compileSdkVersion设为23。
同样的问题,如果不想下载API 23怎么解决呢?
降低appcompat的版本:将build.gradle里面的dependencies对应的appcompat版本降低:
将compile 'com.android.support:appcompat-v7:23.0.1'的版本改为:'com.android.support:appcompat-v7:22.2.1(对应版本即可)。
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
这种类似的数据错误,一定要注意一下流程,
0、问题的起因,是因为我自己使用到了appcompat
1、values-v23.xml这里23就是API的版本,compileSdkVersion 23 ,buildToolsVersion '23.0.1'
2、manifest文件中, <uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="23" />
配置相同就好。
3、同步一下,我这边问题解决了,不知道你有没有解决。
解释:
这是API 23(Android 6.0)中的资源文件,而查看build.gradle,编译的SDK只是为21,我们可以尝试将compileSdkVersion设为23。
同样的问题,如果不想下载API 23怎么解决呢?
降低appcompat的版本:将build.gradle里面的dependencies对应的appcompat版本降低:
将compile 'com.android.support:appcompat-v7:23.0.1'的版本改为:'com.android.support:appcompat-v7:22.2.1(对应版本即可)。
相关文章推荐
- Android布局概览
- iOS笔记11
- android 打开和关闭输入法
- iOS笔记10
- ios 推送证书没有密钥 解决方案【转载】
- OS开发之旅之App的生命周期【转载】
- iOS笔记9
- Android编程-IntentService使用广播与Activity通信
- Android学习笔记-XML解析和JSON
- iOS笔记8
- iOS 字符属性NSAttributedString描述【转载】
- Android4.4 RIL的AT命令增加流程
- iOS笔记6
- 快速搭建一个成熟,强壮的App框架【转载】
- 黑马程序员——Objective-C面向对象self和super关键词的用法笔记和举例
- iOS---导航条右边加多个item
- Android屏幕适配
- Android 获取手机GPS
- Android开发总结笔记 Menu(菜单) 1-1-18
- android开发之Notification_通知栏消息