关于No resource found that matches the given name

在Android开发中,有时候会遇到error: Error: No resource found that matches the given name这样的错误

①倘若后面跟着的是at ‘text‘ with value ‘@string/XXX‘

则只需找到

点击,将XXX添加即可

这是我们点击下方的会发现其中多了XXX【原本是没有的,也可以直接在这里写入相应代码】

②倘若遇到的是@id/XXX‘

则因为id前忘了一个+号,补上即可

时间: 2024-08-04 03:05:46

关于No resource found that matches the given name的相关文章

解决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

编译或运行时可能会出现错误: Error:Error retrieving parent for item: No resource found that matches the given name “Theme.AppCompat.Light”

这个问题我在刚开始写"HelloWorld"时就遇到,以为是API版本太高,下载了常用的API 19.17--一系列的,后来还是有问题.就上网查了很多,遇到几篇不错的文章,记录下来,方便以后查看. No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案  http://www.360doc.com/content/15/0316/15/9200790_455576135.shtml And

【转】eclipse新建项目,报错“Error: workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matches the given name”

原文网址:http://www.cnblogs.com/mbp-study/p/5268478.html 新建项目报错,不知道为什么,以前从未出现过的错误,把sdk更新之后,出现莫名错误,自己也是一知半解,在网上找了好久的错误,终于在一个english网站找到了解决方法,soga,从未觉得english如此美好 错误信息如下 ....\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent fo

解决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'.

创建Android项目时出错——No resource found that matches the given name 'Theme.AppCompat.Light'

创建Android项目时出错,error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 问题描述: 创建一个Android应用项目时,需指定其适用的SDK版本,默认如下图: 最低适用版本为:API 8: Android 2.2 (Froyo) 目标版本为:API 21: Android 4.X (L Preview) 编译版本为:A

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

ubuntu android studio 编译及运行错误Error retrieving parent for item: No resource found that matches the given name

安装好android studio并且安装其它需要的SDK或组件后,根据向导生成新的项目, 编译或运行时可能会出现下面的错误: Error:Error retrieving parent for item: No resource found that matches the given name “xxxxxxxxxx” 不大确定其它人的同样错误是否与本人是同一原因,在本人环境中的问题是“build.gradle(Module:app)”中的配置版本过高的问题. 本人生成项目时,目标andro

android中出现Error retrieving parent for item: No resource found that matches the Theme.AppCompat.Light

styles.xml中<style name="AppBaseTheme" parent="Theme.AppCompat.Light">提示如下错误,这是版本问题. error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 解决方法: 在Eclipse中打开任意一个.java文件,输入  

android常见错误之 No resource found that matches the given name

今天在做一个程序时觉得TextView的背景色不好看,就想在xml文件中改变TextView的背景色.因为本人在 /res/values下放了一个colors.xml文件, 因此在xml文件中使用android:background="@colors/lightyellow"以图将TextView控件的背景色设置为亮黄色.结果出错:No resource found that matches the given name (at 'background' with value '@co