没有资源发现,匹配给定的名字 [英] no resource found that matches the given name
问题描述
本:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.androidbuch.rechner"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="7"></uses-sdk>
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:theme="@android:style/Theme.Light">
<activity android:name=".FormularActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
是我的的AndroidManifest.xml
和线8安培; 11我得到的错误:
is my AndroidManifest.xml
and in lines 8 & 11 I get the error:
没有发现资源匹配 给定的名称(在标签与价值 @字符串/ APP_NAME)
no resource found that matches the given name(at "label" with value "@string/app_name")
没有发现资源匹配 给定的名称(在标签与价值 @字符串/ APP_NAME)
no resource found that matches the given name(at "label" with value "@string/app_name")
这是真的很奇怪,我没动的价值观夹中任意位置。
This is really strange and I did not move the values Folder anywhere.
推荐答案
你检查,以确保您在RES /价值/ strings.xml中定义的字符串资源?
Did you check to ensure that you have the string resource defined in res/values/strings.xml?
<string name="app_name">"My App"</string>
有时候,我注意到日食也将引发一些难以跟踪,如果您有任何错误,.xml文件错误。我不认为解析器恢复很好,有时你可能会产生误导的错误。
Sometimes, I've noticed eclipse will also throw errors that are hard to track if you have any .xml files with errors. I don't think the parser recovers well and sometimes the errors you get can be misleading.
这篇关于没有资源发现,匹配给定的名字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!