Android - 错误:"No resource found that matches the given name android:Theme.Material"

Android - 错误:"No resource found that matches the given name android:Theme.Material"

本文地址: http://blog.csdn.net/caroline_wendy

错误: "No resource found that matches the given name ‘android:Theme.Material.Light.DarkActionBar‘"

原因是:

build.gradle出错, Material是Android L版本的界面功能.

需要制定编译器SDK版本(compileSdkVersion)Android L.

android {
  compileSdkVersion ‘android-L‘
  buildToolsVersion ‘20.0.0‘
  defaultConfig {
    minSdkVersion ‘L‘
    targetSdkVersion ‘L‘
    versionCode 1
    versionName ‘1.0‘
  }
}

其实最低需要, 只修改compileSdkVersion为‘android-L‘即可.

时间: 2025-01-06 00:08:34

Android - 错误:"No resource found that matches the given name android:Theme.Material"的相关文章

Android - 错误:"No resource found that matches the given name android:Theme.Material"

Android - 错误:"No resource found that matches the given name android:Theme.Material" 本文地址: http://blog.csdn.net/caroline_wendy 错误: "No resource found that matches the given name 'android:Theme.Material.Light.DarkActionBar'" 原因是: build.g

升级android sdk到5.0时,创建项目出现错误:No resource found that matches the given name 'android:Widget.Material.A

升级sdk 到5.0时,创建项目时会多创建一个库项目,叫appcompat_v7. 创建完成后,这个项目可能会报错,诸如出现:No resource found that matches the given name 'android:Widget.Material.ActionButton'等错误. 下面是一些解决方案: 解决方案1: 使用sdk manager下载以下内容: 解决方案2: 如果你不想创建appcompat_v7,你可以在创建项目时将minimum Required SDK设置

项目引入android-support-v7-appcompat遇到的问题,no resource found that matches the given name 'android:Theme.AppCompat.Light'

一.问题 今天准备使用v7包中的ToolBar来用,但是在styles.xml中引入Theme.AppCompat.Light的时候,报错“no resource found that matches the given name 'android:Theme.AppCompat.Light'”. 二.解决 1.首先搜索了对应的报错,有很多回答需要导入android-support-v7-appcompat包,引入了几次,还是没有效果.终于功夫不负有心人,偶然看到一个博客中提到,需要将工程和an

Android studio报错 Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'

用Android studio创建一个工程,我选择了Phone and Tablet平台, Minimum SDK选择了API 9,也就最低支持是Android 2.3, 接下来一路Next.惊喜出现了,报了一堆 Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'... 都是说找不到某个样式,仔细看错误信息

解决Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题

解决Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题http://blog.csdn.net/u012336923/article/details/48289485 /路径/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-v23/v

解决IDEA下运行android项目 No resource found that matches the given name 'Theme.AppCompat.Light'.

1.右击项目选择 解决IDEA下运行android项目 No resource found that matches the given name 'Theme.AppCompat.Light'.

error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.

引用appcompat 类库提示 error: Error retrieving parent for item: No resource found that  matches the given name 'android:Widget.Material.ActionButton'. 引用地址 adt-bundle-windows-x86-20140702\sdk\extras\android\support\v7\appcompat 解决办法刚项目SDK改为6.0就可以了 然后清除下 er

Android Studio-error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind

在遇到这两个问题的时候: android:TextAppearance.Material.Widget.Button.Inverse找不到或者报错问题 Error retrieving parent for item: No resource found that matches the given name 'android:Wind 在Android Studio SDK升级到android6.0的时候也就是API为23,报错的话,可以用如下方式,删除23的信息. 我用的是5.0.1,所以删

Android错误之--Error retrieving parent for item: No resource found that matches the given name 'Theme.A

错误提示:error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 如图: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" /> 解决的方