Andorid Studio更新后布局xml的问题

时间:2018-10-01 16:48:50

标签: xml android-layout

更新到最新的android studio后,我在我的.xml布局上看到这个奇怪的错误。 显示的错误是:无法解析资源@ string / path_password_strike_through 尽管我在应用程序的任何地方都没有使用此字符串资源。

我尝试按照某些建议刷新布局并禁用缓存/重新启动,但是问题仍然存在。

有什么建议吗?

enter image description here enter image description here

Strings.xml:

<resources>
<string name="app_name">RandomIt!</string>
<string name="instructionsMainAct">Please enter your choices of numbers</string>
<string name="minValue">Start with</string>
<string name="maxValue">End with</string>
<string name="GoButton">Go!</string>
<string name="biggerVal">Start value is too big!</string>
<string name="emptyMinVal">Value cannot be empty.</string>
<string name="emptyMaxVal">Value cannot be empty.</string>
<string name="title_activity_drawer">DrawerActivity</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
<string name="nav_header_title">RandomIt App</string>
<string name="nav_header_subtitle">dblayzer@gmail.com</string>
<string name="nav_header_desc">Navigation header</string>
<string name="action_settings">Settings</string>
<string name="result_parent">Your random number is:</string>
<string name="result_numberVal">Text</string>
<string name="result_tipStrVal">Tip_text</string>
<string name="default_strTip">"Sorry, your number was not selected.\nTry again next time :}"</string>

1 个答案:

答案 0 :(得分:0)

删除文件可解决该错误。