关于error: Error: No resource found that matches the given name (at 'text' with value '@string/hello')
2012-10-07 10:55
801 查看
这是因为在res/values/strings.xml中没有相应匹配的键值对。strings.xml文件如下:
<resources>
<string name="app_name">Suduku</string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
<string name="title_activity_main">Main</string>
</resources>
增加键值<string name="hello">Hello!</string>就可以了。
<resources>
<string name="app_name">Suduku</string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
<string name="title_activity_main">Main</string>
</resources>
增加键值<string name="hello">Hello!</string>就可以了。
相关文章推荐
- error: Error: No resource found that matches the given name (at 'text' with value '@string/
- Error: No resource found that matches the given name (at 'theme' with value '@style/ AppTheme').
- Android studio b Error: No resource found that matches the given name (at 'src' with value '@dra...
- No resource found that matches the given name (at 'drawab' with value '@drawable/你的资源').
- AndroidManifest.xml:10: error: Error: No resource found that matches the given name (at 'icon' with
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_friend
- 关于Android报错:error: Error: No resource found that matches the given name (at 'label' with value)
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/ history_child_
- Error:No resource found that matches the given name (at 'icon' with value '@mipmap/ic_launcher.9').
- Error retrieving parent for item: No resource found that matches the given name 'android:TextAppeara
- Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/p
- Error:(26, 34) No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/b
- 找不R文件切且报 no resource found that matches the given name(“at ' layout_above ' with value ' @id/text_p'
- Error retrieving parent for item: No resource found that matches the given name 'android:TextAppeara
- 怎样解决错误:error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value
- error: Error: No resource found that matches the given name: attr 'actionBarTabStyle'.
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Ap
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- Android布局问题: No resource found that matches the given name (at 'layout_above' with value @id/tv)
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom