Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/352.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 80+;R无法解析为变量错误,并且找不到与给定名称匹配的资源_Java_Android_Xml_Eclipse - Fatal编程技术网

Java 80+;R无法解析为变量错误,并且找不到与给定名称匹配的资源

Java 80+;R无法解析为变量错误,并且找不到与给定名称匹配的资源,java,android,xml,eclipse,Java,Android,Xml,Eclipse,在修改strings.xml文件后,我突然发现80+R无法解析为变量错误。我不确定我到底做了什么导致了这个问题,但我不知何故破坏了我的项目,当我检查我的工作区所在的网络驱动器时,字符串文件就在那里,我可以在eclipse中打开它,并查看假定的“缺少的字符串”但是eclipse声明:未找到与给定名称匹配的资源,而不管字符串是否存在 采取的步骤: 清理项目 检查strings.xml是否存在异常(未找到) 重新启动Eclipse STRINGS.XML <?xml version="1.0"

在修改strings.xml文件后,我突然发现80+R无法解析为变量错误。我不确定我到底做了什么导致了这个问题,但我不知何故破坏了我的项目,当我检查我的工作区所在的网络驱动器时,字符串文件就在那里,我可以在eclipse中打开它,并查看假定的“缺少的字符串”但是eclipse声明:
未找到与给定名称匹配的资源
,而不管字符串是否存在

采取的步骤:

清理项目

检查strings.xml是否存在异常(未找到)

重新启动Eclipse

STRINGS.XML

<?xml version="1.0" encoding="utf-8"?>
<resources>

      <string name="hello">Welcome to <b>Straight Talk Wireless!</b></string>
    <string name="app_name">Straight Talk Data Settings</string>
    <string name="display_name">Data Settings</string>
    <string name="initial_sm_dialog">The APN Settings on your phone will now be updated to the Straight Talk Wireless Network so you can use DATA and PICTURE MESSAGING.</string>
    <string name="unchanged_sm_dialog">The APN Settings have not been updated to the <b>Straight Talk Mobile Network</b></string>
    <string name="changed_sm_dialog">The APN Settings have been updated to the <b>Straight Talk Mobile Network</b></string>
    <string name="insert_sm_dialog">Error:   \r\nPlease insert a Straight Talk SIM into an unlocked GSM phone and re-run the app.</string>
    <string name="incomp_sm_dialog">Error:   Incompatible device.\r\nPlease use an unlocked GSM phone with a Straight Talk SIM.</string>
    <string name="security_sm_dialog">Please manually enter the Straight Talk APN Settings on your device with the below information:\r\nName:\straighttalk\r\nAPN:\straight talk\r\nMMSC:\thttp://smpl.mms.msg.eng.t-mobile.com/mms/wapenc\r\nMCC:\t310\r\nMNC:\t260</string>
    <string name="security_instr">It looks like you’re running an Android OS Ice Cream Sandwich or later.
        \r\nNo worries, please follow the below steps:
        \r\n1.  Write down these settings: </string>
    <string name="under_settings">2.    Click the button below that says “Take me to Update my Settings”
        \r\n3.  Click the menu button that you’ll see on the next screen
        \r\n4.  Click “New APN” and enter the fields you just wrote down</string>
    <string name="security_sm_dialog_t">Please manually enter the Straight Talk APN Settings on your device.\r\n<table><tr><td>Name:</td><td>Straight Talk</td></tr><tr><td>APN:</td><td>straighttalk</td></tr><tr><td>MMSC:</td><td>thttp://smpl.mms.msg.eng.t-mobile.com/mms/wapenc</td></tr></table></string>
    <string name="assited_title">Assisted Data Settings</string>
    <string name="assited_steps">1. Create a new data profile by selecting Menu>New APN.
        \n\n2.  Select the Straight Talk notification and paste the value in the corresponding field in the new data profile.
        \n\n3.  Continue doing so until there are no more Straight Talk Mobile notifications.
        \n\n4.  Save the new profile and exit.
        \n\n5.  Select the Straight Talk profile as default and you are DONE.</string>
    <string name="assisted_button">Create new data profile</string>
    <string name="finish_alert_title">Almost Complete</string>
    <string name="complete_steps">1.    Press Menu>Save
        \n\n2.  Select the Straight Talk profile as default and you are DONE.</string>
    <string name="update_text">By choosing to update, the APN settings on your cell phone will be automatically updated and you will be able to access data on the Straight Talk Network.\n\n\n\n</string>
    <string name="updating_text">Loading APN settings...\n\n\n\n</string>
    <string name="error_text">We couldn’t retrieve your settings. Please try again later. You might get better results in about an hour.\n\n\n\n</string>
    <string name="visit_text">If that doesn’t work, please visit</string>
    <string name="oops_text">Oops!</string>
    <string name="updated_text">Your settings are updated. Just reboot your phone. If this doesn’t work, go to http://apn.straighttalk.com to find specific instructions for your handset.</string>
    <string name="updated_text2">Your settings are updated.</string>
    <string name="tryagain_text1">&lt;font color="#29abf2">Oops!&lt;/font></string>
    <string name="tryagain_text2"> &lt;font color="#00000">We couldn\'t retrieve your settings. Please try again later.You might get better results in about an hour.&lt;/font </string>
    <string name="tryagain_text3">&lt;font color="#00000">If that doesn\'t work, please visit&lt;/font> &lt;font color="#29abf2">&lt;b>
        <string name="url_text">http://apn.straighttalk.com</string>
        <string name="start_text">Easily set up your Data Settings with this APN mobile app.</string>
        <string name="start_text2">Easily set up your Data Settings\n with this APN mobile app.</string>
        <string name="done_text">Reboot your phone and you’ll have access to the web and picture messaging.</string>
        <string name="apn_app_text_cta2">You’re going to need to edit a few of your phone’s settings. Enhanced security on newer versions of Android will not allow APN settings to be automatically updated. Don’t worry; we will walk you through step by step.</string>
        <string name="apn_app_text_instr">We will send you a series of (%1$s) &lt;font color="#FF000000">&lt;b>NOTIFICATIONS&lt;/b>&lt;/font> to your cell phone. You need to complete each step in order to update your settings.&lt;br>&lt;br>Please take a moment to read each of the following instructions. Once you’re finished reading the instructions click the Let’s Get Started button to begin receiving the notifications</string><string name="apn_app_text_instr2">1. You will need to add a &lt;font color="#FF000000">&lt;b>NEW APN PROFILE&lt;/b>&lt;/font> before you start with the notifications. If you need instructions on how to do this, please refer to your device’s user or manufacture’s manual. &lt;br>&lt;br>2. &lt;font color="#FF000000">&lt;b>PULL DOWN&lt;/b>&lt;/font> the notification screen. Once you have done this the information that needs to be updated will be copied to your clipboard. &lt;br>&lt;br>3. You must then &lt;font color="#FF000000">&lt;b>TAP AND HOLD&lt;/b>&lt;/font> the field presented to you. &lt;font color="#FF000000">&lt;b>RELEASE,&lt;/b>&lt;/font> and the copied information will be pasted into the field. &lt;br>&lt;br>4. &lt;font color="#FF000000">&lt;b>PULL DOWN&lt;/b>&lt;/font> the the notication screen. Once you have done this, the information that needs to be updated will be copied to your clipboard.&lt;br></string><string name="apn_app_text_instr3">5. Complete the series of (%1$s) notification steps. &lt;br>&lt;br>6. &lt;font color="#FF000000">&lt;b>SAVE&lt;/b>&lt;/font> the new profile and exit. &lt;br>&lt;br>7. &lt;font color="#FF000000">&lt;b>SELECT&lt;/b>&lt;/font> the Straight Talk APN profile as default. &lt;br>&lt;br>8. Be sure you &lt;font color="#FF000000">&lt;b>DELETE&lt;/b>&lt;/font> all other APNs, if possible.</string>
        <string name="delete_notif_title">(Delete other APNs)</string>
        <string name="delete_notif_content">SELECT them, Press \"menu\" and delete them if your phone allows it.</string>
        <string name="reboot_notif_title">(Reboot your Phone)</string>
        <string name="reboot_notif_content">If this doesn\'t work, go to:\nwww.straighttalk.com/support</string>
        <string name="read_again_text"><b><u>READ INSTRUCTIONS AGAIN</u></b></string>
        <string name="mcc_label">MCC</string>
        <string name="mcc">310</string>
        <string name="type_label">APN Type</string>
        <string name="type">default,mms,supl</string>
        <string name="config_name_label">Name</string>
        <string name="config_sm_name">Straight Talk Wireless</string>
        <string name="apn_label">APN</string>
        <string name="apn_sm_addr">straighttalk</string>
        <string name="mmsc_label">MMSC</string>
        <string name="mmsc_sm_url">http://smpl.mms.msg.eng.t-mobile.com/mms/wapenc</string>
        <string name="mnc_label">MNC</string>
        <string name="mnc_tmo">260</string>
        <string name="mnc_att">410</string>
        <string name="numeric_tmo">310260</string>
        <string name="proxy_sm_addr"></string>
        <string name="proxy_sm_port"></string>
        <string name="mmsproxy_sm"></string>
        <string name="mmsport_sm"></string>
        <string name="authtype"></string>
        <string name="user"></string>
        <string name="password"></string>
        <string name="server"></string>
        <string name="protocol"></string>
        <string name="authtype_sm">0</string>
        <string name="numeric_att">310410</string>
        <string name="instructions_1">TEST STRING</string>
        <string name="done_text1">TEST STRING2</string></string>  
</resources>

欢迎来到直言无线!
直接通话数据设置
数据设置
您手机上的APN设置现在将更新到直言不讳无线网络,以便您可以使用数据和图片信息。
APN设置尚未更新到直言不讳移动网络
APN设置已更新到直言不讳移动网络
错误:\r\n请将直言不讳SIM卡插入未锁定的GSM手机,然后重新运行应用程序。
错误:设备不兼容。\r\n请使用带直言不讳SIM卡的未锁定GSM电话。
请使用以下信息在设备上手动输入Straight Talk APN设置:\r\n名称:\Straight Talk\r\nAPN:\Straight Talk\r\nMMSC:\thttp://smpl.mms.msg.eng.t-mobile.com/mms/wapenc\r\nMCC:\t310\r\nMNC:\t260
看起来您正在运行Android操作系统冰淇淋三明治或更高版本。
\r\n无需担心,请按照以下步骤操作:
\r\n1。写下这些设置:
2.单击下面显示“带我更新设置”的按钮
\r\n3。单击您将在下一屏幕上看到的菜单按钮
\r\n4。单击“新建APN”并输入您刚才写下的字段
请在您的设备上手动输入Straight Talk APN设置。\r\n名称:Straight TalkAPN:Straight TalkMMSC:thttp://smpl.mms.msg.eng.t-mobile.com/mms/wapenc
辅助数据设置
1.通过选择菜单>新建APN创建新的数据配置文件。
\n\n2。选择直言不讳通知,并将该值粘贴到新数据配置文件的相应字段中。
\n\n3。继续这样做,直到不再有直言不讳的移动通知。
\n\n4。保存新配置文件并退出。
\n\n5。选择“直言不讳”情景模式作为默认情景模式,您就完成了。
创建新的数据配置文件
几乎完成
1.按功能表>保存
\n\n2。选择“直言不讳”情景模式作为默认情景模式,您就完成了。
通过选择更新,您手机上的APN设置将自动更新,您将能够访问直言不讳网络上的数据。\n\n\n\n
正在加载APN设置…\n\n\n\n
我们无法检索您的设置。请稍后再试。大约一小时后,您可能会得到更好的结果。\n\n\n\n
如果不起作用,请访问
哎呀!
您的设置已更新。重新启动你的手机。如果这不起作用,请转到http://apn.straighttalk.com 查找手机的具体说明。
您的设置已更新。
font color=“#29abf2”>哎呀/字体>
font color=“#00000”>我们无法检索您的设置。请稍后再试。大约一小时后您可能会得到更好的结果。/font
font-color=“#00000”>如果不起作用,请访问/font>font-color=“#29abf2”>b>
http://apn.straighttalk.com
使用此APN移动应用程序轻松设置数据设置。
使用此APN移动应用程序\n轻松设置数据设置。
重新启动手机,您就可以访问网络和图片信息。
您需要编辑手机的一些设置。新版本Android上的增强安全性将不允许自动更新APN设置。别担心;我们会一步一步地带你走过。
我们将向您的手机发送一系列(%1$s)font color=“#FF000000”>b>通知/b>/font>。您需要完成每个步骤才能更新设置。br>br>请花点时间阅读以下说明。阅读完说明后,单击“让我们开始”按钮开始接收通知1。在开始通知之前,您需要添加一个font color=“#FF000000”>b>新APN配置文件/b>/font>。如果您需要有关如何操作的说明,请参阅设备的用户手册或制造商手册。br>br>2。font color=“#FF000000”>b>下拉/b>/font>通知屏幕。完成此操作后,需要更新的信息将复制到剪贴板。br>br>3。然后必须按住显示给您的字段font color=“#FF000000”>b>。font color=“#FF000000”>b>发布,/b>/font>复制的信息将粘贴到字段中。br>br>4。font color=“#FF000000”>b>下拉/b>/font>通知屏幕。完成此操作后,需要更新的信息将复制到剪贴板。br>5。完成一系列(%1$s)通知步骤。br>br>6。font color=“#FF000000”>b>保存/b>/font>新配置文件并退出。br>br>7。font color=“#FF000000”>b>选择/b>/font>直言不讳APN配置文件作为默认设置。br>br>8。如果可能,请确保您选择了font-color=“#FF000000”>b>删除/b>/font>所有其他APN。
(删除其他APN)
选择它们,按“功能表”,并在手机允许的情况下删除它们。
(重新启动手机)
如果这不起作用,请转到:\nwww.streamtalk.com/support
再次阅读说明
MCC
310
APN型
默认值、彩信、supl
名称
直接通话无线
接入点
直言不讳
MMSC
http://smpl.mms.msg.eng.t-mobile.com/mms/wapenc
跨国公司
260
410
310260