错误:找不到与给定名称匹配的资源(在'title'处有值

时间:2014-08-23 21:11:20

标签: android xml string

我正在尝试构建android,并且在我添加LockScreenNotifications之前,everthing一直很顺利......

它给了我以下错误:

  

包/应用/设置/ RES / XML / lockscreen_interface_settings.xml:20:   错误:错误:找不到与给定名称匹配的资源(at   '标题'有价值' @ string / title_general')。   封装/应用/设置/ RES / XML / lockscreen_interface_settings.xml:24:   错误:错误:找不到与给定名称匹配的资源(at   '标题'有价值' @ string / screen_security_category')。   封装/应用/设置/ RES / XML / lockscreen_interface_settings.xml:24:   错误:错误:找不到与给定名称匹配的资源(at   '总结'有价值' @ string / screen_security_summary')。   包/应用/设置/ RES / XML / lockscreen_interface_settings.xml:38:   错误:错误:找不到与给定名称匹配的资源(at   ' DIALOGTITLE'值' @ string / lockscreen_battery_status_title')。   包/应用/设置/ RES / XML / lockscreen_interface_settings.xml:38:   错误:错误:找不到与给定名称匹配的资源(at   '标题'值' @ string / lockscreen_battery_status_title')。   包/应用/设置/ RES / XML / lockscreen_interface_settings.xml:38:   错误:错误:找不到与给定名称匹配的资源(at   '条目'有价值' @ array / lockscreen_battery_status_entries')。   包/应用/设置/ RES / XML / lockscreen_interface_settings.xml:38:   错误:错误:找不到与给定名称匹配的资源(at   ' entryValues'有价值' @ array / lockscreen_battery_status_values')。   封装/应用/设置/ RES / XML / lockscreen_interface_settings.xml:47:   错误:错误:找不到与给定名称匹配的资源(at   '总结'有价值的   ' @串/ battery_around_lockscreen_ring_summary&#39)。   封装/应用/设置/ RES / XML / lockscreen_interface_settings.xml:55:   错误:错误:找不到与给定名称匹配的资源(at   '标题'有价值' @ string / title_shortcuts')。   封装/应用/设置/ RES / XML / lockscreen_interface_settings.xml:65:   错误:错误:找不到与给定名称匹配的资源(at   '标题'值' @ string / lockscreen_buttons_title')。   封装/应用/设置/ RES / XML / lockscreen_interface_settings.xml:65:   错误:错误:找不到与给定名称匹配的资源(at   '总结'有价值' @ string / lockscreen_buttons_summary')。

当我打开文件时,它看起来像这样:

  

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
     

- >

<PreferenceCategory
    android:title="@string/title_general"
    android:key="lockscreen_general_category" >

    <PreferenceScreen
        android:key="screen_security"
        android:fragment="com.android.settings.SecuritySettings"
        android:title="@string/screen_security_category"
        android:summary="@string/screen_security_summary">                        
    </PreferenceScreen>
     

          

    <ListPreference
        android:key="lockscreen_battery_status"
        android:persistent="false"
        android:dialogTitle="@string/lockscreen_battery_status_title"
        android:title="@string/lockscreen_battery_status_title"
        android:entries="@array/lockscreen_battery_status_entries"
        android:entryValues="@array/lockscreen_battery_status_values"
        android:defaultValue="0" />

    <CheckBoxPreference
        android:key="battery_around_lockscreen_ring"
        android:title="@string/battery_around_lockscreen_ring"
          android:summary="@string/battery_around_lockscreen_ring_summary"
        android:defaultValue="true" />

</PreferenceCategory>

<PreferenceCategory
    android:title="@string/title_shortcuts"
    android:key="lockscreen_shortcuts_category" >
     

    <PreferenceScreen
        android:fragment="com.android.settings.mahdi.LockscreenButtons"
        android:key="lockscreen_buttons"
        android:title="@string/lockscreen_buttons_title"
        android:summary="@string/lockscreen_buttons_summary" />

</PreferenceCategory>
   </PreferenceScreen>

有人可以告诉我我做错了吗?

提前感谢...

0 个答案:

没有答案