2017-09-22 3 views
-8

私はすでに、タグを閉じたが、私はそれが言うコンパイルするとき、それはまだ、私にエラーを与える:XMLを解析「XMLの解析中にエラーが発生しました:タグの不一致」をデバッグするには?

エラー:不一致タグ

そしてXMLコピーエディタ内をするとき、それは私にこれを言います「Preference End of data in tag PreferenceScreen line 2」、誰かが私にそれを書いたようなコードを書くことができますか?真実私は何が間違っているのか分かりません、私は初心者です。

<?xml version="1.0" encoding="utf-8"?> 
<PreferenceScreen android:title="@string/GB_Mods" 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:cmwmobile="http://schemas.android.com/apk/res/com.whatsapp"> 
    <PreferenceCategory android:title="HPWhatsApp 4.0" android:key="cat_wa"> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_preguntas" android:title="HPWhatsApp WEB" android:key="settings_faq" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_actualizaciones" android:title="@string/updatess" android:key="updates_key" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_Thanks" android:title="Donar" android:summary="Donar al desarrollador" > 
      <intent android:action="android.intent.action.VIEW" android:data="https://paypal.me/Hectorc4rp" /> 
     </com.whatsapp.preference.WaPreference> 
     <PreferenceScreen android:icon="@drawable/ic_9" android:title="Contactar al desarrollador" android:summary="Habla con Héctor Paez, creador de HPWhatsApp" > 
      <intent android:action="android.intent.action.VIEW" android:data="https://api.whatsapp.com/send?phone=543814805749" /> 
     </PreferenceScreen> 
    </PreferenceCategory> 
    <PreferenceCategory android:title="@string/themes"> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_descargar" android:title="@string/download_themes" android:key="download_themes" android:summary="@string/download_themes_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_temas" android:title="@string/more_preferences" android:key="themes_key" android:summary="@string/more_preferences_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_web" android:title="Más temas" android:summary="Descarga temas hechos por otras personas" > 
      <intent android:action="android.intent.action.VIEW" android:data="http://www.whatsappthemes.net/search/label/GBWhatsApp%20Themes" /> 
     </com.whatsapp.preference.WaPreference> 
    </PreferenceCategory> 
    <PreferenceCategory android:title="@string/appearance"> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_1" android:title="@string/conversation_colors" android:key="chat_colors" android:summary="@string/conversation_colors_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_2" android:title="@string/chats_colors" android:key="chats_colors" android:summary="@string/chats_colors_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_3" android:title="@string/popup_colors" android:key="popup_key" android:summary="@string/popup_colors_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_4" android:title="@string/widgets" android:key="widget_key" android:summary="@string/widgets_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_5" android:title="@string/media_sharing_pref" android:key="media_sharing_key" android:summary="@string/media_sharing_pref_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_6" android:title="@string/others" android:key="others_key" android:summary="@string/others_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_7" android:title="@string/gb_lock" android:key="gb_lock" /> 
     <Preference android:icon="@drawable/ic_actualizaciones" android:title="@string/clean_whatsapp_pref" android:key="clean_whatsapp_screen" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_8" android:title="@string/read_log_pref" android:key="logs_key" /> 
     <ListPreference android:icon="@drawable/ic_lang" android:entries="@array/language_array" android:title="@string/language_title" android:key="gb_language_key" android:defaultValue="0" android:entryValues="@array/language_values" /> 
     <Preference android:icon="@drawable/ic_temas" android:title="@string/change_font_pref" android:key="gb_fonts" /> 
    </PreferenceCategory> 
    <PreferenceCategory android:title="@string/GB_About" android:key="cat_about"> 
     <Preference android:icon="@drawable/ic_twitter" android:title="@string/pref_facebook" android:key="facebook" android:summary="@string/pref_sum_facebook" /> 
     <Preference android:icon="@drawable/ic_twi" android:title="@string/google_plus" android:key="google_plus" android:summary="@string/google_plus_sum" /> 
     <Preference android:icon="@drawable/ic_web" android:title="@string/pref_sum_blogger" android:key="about" android:summary="HPWhatsApp" /> 
     <Preference android:icon="@drawable/ic_twitter" android:title="Página de Facebook" android:summary="Regalanos un me gusta en Facebook" > 
       <intent android:action="android.intent.action.VIEW" android:data="https://facebook.com/todo.para.android.hp" /> 
     <Preference android:icon="@drawable/ic_compartir" android:title="@string/GBShare" android:key="share" android:summary="@string/GBShareSum" /> 
     <Preference android:icon="@drawable/ic_reportar" android:title="@string/GB_Report" android:key="report" /> 
     <Preference android:icon="@drawable/ic_Thanks" android:title="@string/Thanks" android:key="Thanks" /> 
    </PreferenceCategory> 
</PreferenceScreen> 
+3

次回https://es.stackoverflow.com/ – Aldeguer

+0

英語のみください –

+0

会話は英語のみである必要があり、英語で尋ねるか、スペイン語版にアクセスしてください。私たちがあなたを助け、希望する解決策であなたに戻ってくるように。 – Ankita

答えて

0

次の2つの場所で "com.whatsapp.preference.WaPreference" タグを閉じるのを忘れています。

<?xml version="1.0" encoding="utf-8"?> 
<PreferenceScreen android:title="@string/GB_Mods" 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:cmwmobile="http://schemas.android.com/apk/res/com.whatsapp"> 
    <PreferenceCategory android:title="HPWhatsApp 4.0" android:key="cat_wa"> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_preguntas" android:title="HPWhatsApp WEB" android:key="settings_faq" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_actualizaciones" android:title="@string/updatess" android:key="updates_key" /> 

     <!-- start <com.whatsapp.preference.WaPreference> --> 

     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_Thanks" android:title="Donar" android:summary="Donar al desarrollador" > 
      <intent android:action="android.intent.action.VIEW" android:data="https://paypal.me/Hectorc4rp" /> 

     <!-- close your </com.whatsapp.preference.WaPreference> here --> 

     </com.whatsapp.preference.WaPreference> 
     <PreferenceScreen android:icon="@drawable/ic_9" android:title="Contactar al desarrollador" android:summary="Habla con Héctor Paez, creador de HPWhatsApp" > 
      <intent android:action="android.intent.action.VIEW" android:data="https://api.whatsapp.com/send?phone=543814805749" /> 
     </PreferenceScreen> 
    </PreferenceCategory> 
    <PreferenceCategory android:title="@string/themes"> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_descargar" android:title="@string/download_themes" android:key="download_themes" android:summary="@string/download_themes_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_temas" android:title="@string/more_preferences" android:key="themes_key" android:summary="@string/more_preferences_summary" /> 

     <!-- start <com.whatsapp.preference.WaPreference> --> 

     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_web" android:title="Más temas" android:summary="Descarga temas hechos por otras personas" > 
      <intent android:action="android.intent.action.VIEW" android:data="http://www.whatsappthemes.net/search/label/GBWhatsApp%20Themes" /> 

     <!-- close your </com.whatsapp.preference.WaPreference> here --> 

     </com.whatsapp.preference.WaPreference> 
    </PreferenceCategory> 
    <PreferenceCategory android:title="@string/appearance"> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_1" android:title="@string/conversation_colors" android:key="chat_colors" android:summary="@string/conversation_colors_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_2" android:title="@string/chats_colors" android:key="chats_colors" android:summary="@string/chats_colors_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_3" android:title="@string/popup_colors" android:key="popup_key" android:summary="@string/popup_colors_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_4" android:title="@string/widgets" android:key="widget_key" android:summary="@string/widgets_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_5" android:title="@string/media_sharing_pref" android:key="media_sharing_key" android:summary="@string/media_sharing_pref_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_6" android:title="@string/others" android:key="others_key" android:summary="@string/others_summary" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_7" android:title="@string/gb_lock" android:key="gb_lock" /> 
     <Preference android:icon="@drawable/ic_actualizaciones" android:title="@string/clean_whatsapp_pref" android:key="clean_whatsapp_screen" /> 
     <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_8" android:title="@string/read_log_pref" android:key="logs_key" /> 
     <ListPreference android:icon="@drawable/ic_lang" android:entries="@array/language_array" android:title="@string/language_title" android:key="gb_language_key" android:defaultValue="0" android:entryValues="@array/language_values" /> 
     <Preference android:icon="@drawable/ic_temas" android:title="@string/change_font_pref" android:key="gb_fonts" /> 
    </PreferenceCategory> 
    <PreferenceCategory android:title="@string/GB_About" android:key="cat_about"> 
     <Preference android:icon="@drawable/ic_twitter" android:title="@string/pref_facebook" android:key="facebook" android:summary="@string/pref_sum_facebook" /> 
     <Preference android:icon="@drawable/ic_twi" android:title="@string/google_plus" android:key="google_plus" android:summary="@string/google_plus_sum" /> 
     <Preference android:icon="@drawable/ic_web" android:title="@string/pref_sum_blogger" android:key="about" android:summary="HPWhatsApp" /> 
     <Preference android:icon="@drawable/ic_twitter" android:title="Página de Facebook" android:summary="Regalanos un me gusta en Facebook" > 
       <intent android:action="android.intent.action.VIEW" android:data="https://facebook.com/todo.para.android.hp" /> 
     <Preference android:icon="@drawable/ic_compartir" android:title="@string/GBShare" android:key="share" android:summary="@string/GBShareSum" /> 
     <Preference android:icon="@drawable/ic_reportar" android:title="@string/GB_Report" android:key="report" /> 
     <Preference android:icon="@drawable/ic_Thanks" android:title="@string/Thanks" android:key="Thanks" /> 
    </PreferenceCategory> 
</PreferenceScreen> 
0

intent内側にcom.whatsapp.preference.WaPreferenceタグが閉じていません。例えば。

<PreferenceCategory android:title="HPWhatsApp 4.0" android:key="cat_wa"> 
    <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_preguntas" android:title="HPWhatsApp WEB" android:key="settings_faq" /> 
    <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_actualizaciones" android:title="@string/updatess" android:key="updates_key" /> 
    <com.whatsapp.preference.WaPreference android:icon="@drawable/ic_Thanks" android:title="Donar" android:summary="Donar al desarrollador" > 
     <intent android:action="android.intent.action.VIEW" android:data="https://paypal.me/Hectorc4rp" /> 
     <!-- 
      Close the com.whatsapp.preference.WaPreference here ! 
     --> 
    </com.whatsapp.preference.WaPreference> 
    <PreferenceScreen android:icon="@drawable/ic_9" android:title="Contactar al desarrollador" android:summary="Habla con Héctor Paez, creador de HPWhatsApp" > 
     <intent android:action="android.intent.action.VIEW" android:data="https://api.whatsapp.com/send?phone=543814805749" /> 
    </PreferenceScreen> 
</PreferenceCategory> 
関連する問題