简体   繁体   English

有一些麻烦与xml文件。 Android系统。 日食。 错误:无效的开始标记PreferenceScreen

[英]Have some troubles vith xml file. Android. Eclipse. error: Invalid start tag PreferenceScreen

Have some troubles vith xml file. 有一些麻烦与xml文件。 Android. Android系统。 Eclipse. 日食。 Help please) Error: error: Invalid start tag PreferenceScreen 请帮助)错误:错误:无效的开始标记PreferenceScreen

Error notification on second line 第二行错误通知

    <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory
        android:title="Работа с файлами">
        <CheckBoxPreference
            android:key="@string/pref_openmode"
            android:title="Открыть файл"
            android:summary="Открывать файл при запуске приложения" />
    </PreferenceCategory>

(its only a little bit part...) (它只是一点点......)

I think that you have your file in the wrong directory. 我认为你的文件在错误的目录中。

    <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory
        android:title="Работа с файлами">
        <CheckBoxPreference
            android:key="@string/pref_openmode"
            android:title="Открыть файл"
            android:summary="Открывать файл при запуске приложения" />
    </PreferenceCategory>
</PreferenceScreen>
    <?xml version="1.0" encoding="utf-8"?>
      <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
      <PreferenceCategory
    android:title="Работа с файлами">
    <CheckBoxPreference
        android:key="@string/pref_openmode"
        android:title="Открыть файл"
        android:summary="Открывать файл при запуске приложения" />
    </PreferenceCategory>
       </PreferenceScreen>

The above is correct u should place this xml file in the values which is under res folder. 以上是正确的你应该将此xml文件放在res文件夹下的值中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:公用类型TodoListItemView必须在其自己的文件中定义。 安卓 日食 - Error: The public type TodoListItemView must be defined in its own file. Android. Eclipse Eclipse中的“文件重命名”错误。 - “Rename in file” error in Eclipse. 我的Android xml文件中出现AAPt错误:标记 <category> 属性包含无效字符 - I have AAPt error on my Android xml file: Tag <category> attribute has invalid character Android:膨胀 PreferenceScreen 时出错 - Android: Error inflating PreferenceScreen Eclipse无法启动。 发生错误。 看日志文件。 C:\\ path_to_eclipse \\ configuration \\ 1429818588469.log - Eclipse does not start. An error has occured. See the log file. C:\path_to_eclipse\configuration\1429818588469.log 关于android中xml文件的错误。 找不到与给定名称@text匹配的资源 - Error regarding xml file in android. No resource found that matches the given name @text 从jar运行XML错误“:1:1:序言中不允许内容”-在Eclipse中可以。 为什么? - XML error “:1:1: Content is not allowed in prolog” running from jar - but is OK in Eclipse. Why? 错误:无效的开始标记LinearLayout - Error: Invalid start tag LinearLayout 在eclipse中动态编写.feature文件。 - Dynamically write a .feature file in eclipse. 日食。 将JAR文件复制到项目中 - Eclipse. Copy JAR file into project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM