解决Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题
2016-04-18 14:06
429 查看
如果在刚够构建Android Studio项目的时候,运行发现,出现没找到资源的错误!找不到com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xml
[html] view
plaincopy
/路径/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'.
这是API 23(Android 6.0)中的资源文件,而查看build.gradle,编译的SDK只是为21,我们可以尝试将compileSdkVersion设为23(如果sdk里面没有下载API
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'
如果想了解更多:http://stackoverflow.com/questions/32092511/resource-error-in-android-studio-after-update-no-resource-found
/article/7777715.html
[html] view
plaincopy
/路径/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'.
这是API 23(Android 6.0)中的资源文件,而查看build.gradle,编译的SDK只是为21,我们可以尝试将compileSdkVersion设为23(如果sdk里面没有下载API
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'
如果想了解更多:http://stackoverflow.com/questions/32092511/resource-error-in-android-studio-after-update-no-resource-found
/article/7777715.html
相关文章推荐
- 收集android上开源的酷炫的交互动画和视觉效果:Interactive-animation
- Android学习笔记之 android:collapseColumns ,android:shrinkColumns 和stretchColumns
- Android Activity跳转动画,让你的APP瞬间绚丽起来
- startActivityForResult用法详解
- Android Studio 插件 Statistic
- Android源码及SDK国内镜像下载
- android背景选择器selector用法汇总
- 玩味AndroidStudio的NewProject
- Andorid 反编译App
- cocos2dx3.0 removeFromParent和removeAllChildren含义
- BaseAnimation是基于开源的APP,致力于收集各种动画效果(最新版本1.3)
- Android项目中异常捕获及对应Log日志文件保存
- 百度坐标转化为高德坐标 android
- IOS:Objective-C中奇特的方法声明语法理解
- iOS 时间戳转换为时间、NSDate转NSString、NSString转NSDate
- ios8新特性widget开发
- Swift中用NSURLConnection解析URL,并解析Jason数据
- iOS之友盟简单分享(第三方)及sso授权问题
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- android 图片加载库 Glide 的使用介绍