[Desire Android Development] 1982Strand:
Having some trouble with recompiling browser apk..

I get this error:

[*] Browser folder
recompiling Browser.apk...
I: Smaling...
I: Building resources...
C:\Users\Dan\Desktop\AutoAPKTool2.0.0\_INPUT_APK\Browser\res\values-da\strings.xml:312: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Dan\AppData\Local\Temp\APKTOOL2623579385575846761.tmp, -I, C:\Users\Dan\apktool\framework\1.apk, -S, C:\Users\Dan\Desktop\AutoAPKTool2.0.0\_INPUT_APK\Browser\res, -M, C:\Users\Dan\Desktop\AutoAPKTool2.0.0\_INPUT_APK\Browser\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Dan\AppData\Local\Temp\APKTOOL2623579385575846761.tmp, -I, C:\Users\Dan\apktool\framework\1.apk, -S, C:\Users\Dan\Desktop\AutoAPKTool2.0.0\_INPUT_APK\Browser\res, -M, C:\Users\Dan\Desktop\AutoAPKTool2.0.0\_INPUT_APK\Browser\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

My strings.xml look like this:

<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="common_minutes_ago">%s minutter siden</string>
<string name="common_hours_ago">%s timer siden</string>
<string name="common_days_ago">%s dage siden</string>
<string name="app_name">Browser</string>
<string name="app_settings">Indstillinger</string>
<string name="urltitlebar_gotourl">GÅ!</string>
<string name="urltitlebar_hint">Søg ekker indtast URL</string>
<string name="search_description">Bogmærker, Historik, Google forslag</string>
<string name="browser_addnewtab">Ny fane</string>
<string name="bookmark_title">Navn</string>
<string name="bookmark_url">URL</string>
<string name="bookmark_folder">Mappe</string>
<string name="bookmark_folderpicker_header">Vælg mappe</string>
<string name="bookmark_control_items_sort_alphabetically">Sorter alfabetisk</string>
<string name="bookmark_control_items_sort_manually">Sorter manuelt</string>
<string name="night_mode_desc">Tvinger "nat-tilstand" på hjemmesider.</string>
<string name="menu_brightness_adjust">Lysstyrke</string>
<string name="save">OK</string>
<string name="back">Tilbage</string>
<string name="ok">OK</string>
<string name="cancel">Anuller</string>
<string name="close">Luk</string>
<string name="go">GÅ!</string>
<string name="search">Søg</string>
<string name="clear">Ryd</string>
<string name="feedback">Feedback</string>
<string name="exit">Afslut</string>
<string name="do_not_save">Annuller</string>
<string name="bookmark_windowtitle_add">Nyt bogmærke</string>
<string name="bookmark_shortcut_already_exists">Bogmærke eksisterer allerede!</string>
<string name="bookmark_windowtitle_edit">Rediger Bogmærke</string>
<string name="bookmark_saved">Bogmærke gemt.</string>
<string name="bookmark_failed_to_save">Bogmærke IKKE gemt!</string>
<string name="bookmark_needs_title">Indtast venligdt en titel.</string>
<string name="bookmark_needs_url">Indtast venligst URL.</string>
<string name="bookmark_url_not_valid">Indtast venligst gyldig URL.</string>
<string name="bookmark_cannot_save_url">Denne URL kan ikke bogmærkes.</string>
<string name="added_to_bookmarks">Bogmærke gemt.</string>
<string name="removed_from_bookmarks">Bogmærke fjernet.</string>
<string name="search_the_web">Søg på internettet</string>
<string name="baidu_search_label">Baidu Søgning</string>
<string name="baidu_search_suggest_label">Baidu Søgning:</string>
<string name="google_search_suggest_label">Google Søgning:</string>
<string name="bing_search_suggest_label">Bing Søgning:</string>
<string name="yahoo_search_suggest_label">Yahoo Søgning:</string>
<string name="Bookmark_favorite">Bogmærker</string>
<string name="Bookmark_history">Historik</string>
<string name="Bookmark_most_visited">Mest besøgt</string>
<string name="system_folder_one_click_launcher">Hurtig adgang</string>
<string name="menu_fav">Bogmærker</string>
<string name="app_confirm_exit">Sikker på du vil afslutte?</string>
<string name="app_clear_cache">Ryd Cache</string>
<string name="bookmark_add_folder">Ny mappe</string>
<string name="bookmark_folder_exist">Mappe eksisterer allerede!</string>
<string name="added_bookmark_folder">Bogmærke oprettet!</string>
<string name="rss_loading">Opdaterer...</string>
<string name="open_link_background">Åbnede link i baggrunden.</string>
<string name="reading_title">Læs:</string>
<string name="bookmark_header_title">Bogmærker</string>
<string name="bookmark_delete">Slet</string>
<string name="bookmark_edit">Rediger</string>
<string name="bookmark_folder_deleted">Slettede mappen.</string>
<string name="bookmark_default_folder">Standard</string>
<string name="edit_bookmarkfolder_header">Rediger mappe</string>
<string name="bookmark_folder_need_title">Indtast venligst mappenavn!</string>
<string name="bookmark_edit_folder_exist">Mappen eksisterer allerede!</string>
<string name="pref_wap_support">WAP Understøttelse</string>
<string name="pref_content_title">Hjemmeside</string>
<string name="pref_content_load_images">Indlæs billeder</string>
<string name="pref_content_volume_setting">Lydstyrke knap indstillinger</string>
<string name="pref_content_volume_enable">Aktiver lydstyrke knap indstillinger</string>
<string name="pref_content_block_popups">Bloker Pop-Ups</string>
<string name="pref_operation_title">Gesture and Operation</string>
<string name="pref_enter_reading_mode">Læsetilstand</string>
<string name="pref_enter_forum_mode">Forumtilstand</string>
<string name="http">http://</string>
<string name="pref_content_plugins">Vis Flash indhold</string>
<string name="pref_content_homepage">Indstil hjemmeside</string>
<string name="pref_privacy_clear_cache">Ryd Cache</string>
<string name="pref_privacy_clear_cache_summary">Ryd lokal cahce og databaser.</string>
<string name="pref_privacy_clear_cache_dlg">Dette vil slette gemt indhold i den lokale cache og database.</string>
<string name="pref_privacy_clear_cookies">Slet Cookies</string>
<string name="pref_privacy_clear_cookies_summary">Slet alle browser cookies.</string>
<string name="pref_privacy_clear_cookies_dlg">Dette vil slette alle cookies.</string>
<string name="pref_privacy_clear_history">Slet Historik</string>
<string name="pref_homepage_use_current">Nuværende side</string>
<string name="pref_homepage_use_default">Gendan standard</string>
<string name="pref_privacy_clear_history_summary">Slet din browsers navigeringshistorik.</string>
<string name="pref_privacy_clear_history_dlg">Dette vil slette browserens navigeringshistorik.</string>
<string name="pref_privacy_clear_form_data">Slet formular data</string>
<string name="pref_privacy_clear_form_data_summary">Slet al gemt formular data.</string>
<string name="pref_privacy_clear_form_data_dlg">Dette vil slette al formular data.</string>
<string name="pref_privacy_clear_passwords">Slet gemte kodeord</string>
<string name="pref_privacy_clear_passwords_summary">Slet alle gemte kodeord.</string>
<string name="pref_privacy_clear_passwords_dlg">Dette vil slette alle gemte kodeord.</string>
<string name="pref_privacy_enable_geolocation">Aktiver Geo-lokation</string>
<string name="pref_privacy_enable_geolocation_summary">Tillad hjemmesider adgang til information om din lokation.</string>
<string name="pref_privacy_clear_geolocation_access">Deaktiver Geo-lokation</string>
<string name="pref_privacy_clear_geolocation_access_summary">Afvis hjemmesider adgang til information om din lokation.</string>
<string name="pref_privacy_clear_geolocation_access_dlg">Hjemmesider vil ikke længere have adgang til information om din lokation.</string>
<string name="pref_security_title">Sikkerhed og privat</string>
<string name="pref_security_remember_passwords">Husk kodeord</string>
<string name="pref_security_remember_passwords_summary">Husk brugernavne og kodeord.</string>
<string name="pref_security_save_form_data">Husk formular data</string>
<string name="pref_security_save_form_data_summary">Husk indtastet data i formularer til senere brug.</string>
<string name="pref_reset_default">Gendan til standardindstillinger</string>
<string name="pref_reset_default_dlg">Indstillinger vil blive gendannet til standard værdier.</string>
<string name="pref_reset_default_dlg_title">Gendan til standardindstillinger</string>
<string name="pref_text_size">Tekststørrelse</string>
<string name="pref_overview_mode">Panorama tilstand</string>
<string name="pref_overview_mode_summary">Vis hjemmesider i panorama tilstand.</string>
<string name="pref_auto_enter_fullscreen">Smart Fuld-skærm</string>
<string name="pref_auto_enter_fullscreen_summary">Slå automatisk fuld-skærm tilstand fra og til.</string>
<string name="pref_text_size_dialogtitle">Tekststørrelse</string>
<string name="pref_about">Om MIUI Browser</string>
<string name="pref_about_detail">MIUI Browser</string>
<string name="pref_about_message2">Copyright ©2011 MIUI.COM</string>
<string name="pref_about_message3">Alle rettigheder forbeholdt</string>
<string name="pref_always_show_tabbar">Vis altid faner</string>
<string name="pref_always_show_tabbar_summary">For nemt skift mellem vinduer.</string>
<string name="pref_show_tabbar_in_loading">Vis faner under indlæsning</string>
<string name="pref_hide_buttons_in_fullscreen">Svævende Knapper</string>
<string name="pref_simple_mode">Simpel tilstand</string>
<string name="pref_hide_status_bar_always">Statuslinie</string>
<string name="pre_set_full_screen">Fuld-skærm Kontrol</string>
<string name="pre_set_date_management">Browser Data</string>
<string name="forum_post_empty">Indhold kan ikke være tomt!</string>
<string name="download_action_start">Start Download</string>
<string name="menu_settings">Indstillinger</string>
<string name="menu_select_text">Vælg tekst</string>
<string name="toast_select_text">Vælg tekst der skal kopieres.</string>
<string name="menu_night_mode_on">Nat tilstand</string>
<string name="reading_enter_reading_mode">Du er nu i læse tilstand.</string>
<string name="reading_leave_reading_mode">Læse tilstand afsluttet.</string>
<string name="reading_data_not_available">Læsetilstand ikke tilgængelig på nuværende tidspunkt, venligst afslut.</string>
<string name="download_no_sdcard_dlg_title">Intet SD-Kort</string>
<string name="download_no_sdcard_dlg_msg">Kort skal være indsat og klar før download af %s</string>
<string name="download_sdcard_busy_dlg_title">SD-Kort optaget</string>
<string name="download_sdcard_busy_dlg_msg">Kortet er optaget. Luk venligst for bug og prøv igen.</string>
<string name="top_search_google">Google</string>
<string name="top_search_baidu">Baidu</string>
<string name="top_search_bing">Bing</string>
<string name="top_search_yahoo">Yahoo!</string>
<string name="top_search">Søg/string>
<string name="top_url">www.</string>
<string name="contextmenu_openlink">Åben i samme vindue</string>
<string name="contextmenu_openlink_newwindow">Åben i nyt vindue</string>
<string name="contextmenu_openlink_background">Åben i baggrunden</string>
<string name="contextmenu_bookmark_thislink">Tilføj til bogmærker</string>
<string name="contextmenu_savelink">Gem Link</string>
<string name="contextmenu_sharelink">Del Link</string>
<string name="contextmenu_copy">Kopier</string>
<string name="contextmenu_copylink">Kopier URL</string>
<string name="contextmenu_showpageinfo">Vis side info</string>
<string name="contextmenu_download_image">Gem billede</string>
<string name="contextmenu_view_image">Vis billede</string>
<string name="contextmenu_set_wallpaper">Indstil som tapet</string>
<string name="contextmenu_dial_dot">Ring op ...</string>
<string name="contextmenu_add_contact">Tilføj kontakt</string>
<string name="contextmenu_send_mail">E-Mail</string>
<string name="contextmenu_map">Indstil til</string>
<string name="contextmenu_share_image">Del billede</string>
<string name="choosertitle_sharevia">Del via</string>
<string name="progress_dialog_setting_wallpaper">Indstiller tapet ...</string>
<string name="choose_upload">Vælg fil til upload</string>
<string name="page_info">Side information</string>
<string name="page_info_view">Hjemmeside information</string>
<string name="page_info_address">Adresse:</string>
<string name="ssl_warnings_header">Siden har problemer med sikkerhedscertifikater!</string>
<string name="ssl_continue">Fortsæt</string>
<string name="security_warning">Sikkerhedsadvarsel</string>
<string name="view_certificate">Se Certifikat</string>
<string name="ssl_untrusted">Certificated er ikke fra et pålideligt godkendelsescenter.</string>
<string name="ssl_mismatch">Sidens navn stemmer ikke med navnet på certifikatet.</string>
<string name="ssl_expired">Certifikatet er udløbet.</string>
<string name="ssl_not_yet_valid">Certifikatet er ikke gyldigt endnu.</string>
<string name="ssl_certificate">Sikkerhedscertifikat</string>
<string name="ssl_certificate_is_valid">Certifikatet er gyldigt.</string>
<string name="issued_to">Udstedt til:</string>
<string name="common_name">Fælles navn:</string>
<string name="org_name">Organisation:</string>
<string name="org_unit">Organisationsenhed:</string>
<string name="issued_by">Udsteder:</string>
<string name="validity_period">Gyldighed:</string>
<string name="issued_on">Tidspunkt for udstedelse:</string>
<string name="expires_on">Gyldig indtil:</string>
<string name="sign_in_to">Log ind</string>
<string name="username">Navn</string>
<string name="password">Kodeord</string>
<string name="action">Log ind</string>
<string name="search_engine_selection_title">Vælg din favorit søgemaskine:</string>
<string name="search_engine_baidu">Baidu</string>
<string name="search_engine_google">Google</string>
<string name="search_engine_bing">Bing</string>
<string name="search_engine_yahoo">Yahoo</string>
<string name="browser_select_shortcut_url">Indtast URL</string>
<string name="webpage_notitle">Unavngiven side</string>
<string name="tip_enter_full_screen_mode">Tryk på nederste højre hjørne for at afslutte fuld skærm.</string>
<string name="email_subject">MIUI Browser Feedback</string>
<string name="email_body">Hjemmeside feedback: \n%s\n Giv os venligst din feedback: \n\n</string>
<string name="submit">Indsend</string>
<string name="feedback_title">Intast venligst feedback:</string>
<string name="feedback_email">Indtast venligst e-mail:</string>
<string name="feedback_email_hidden">Udfyldes valgfrit</string>
<string name="homepage_title">Hjem</string>
<string name="reading_cached">Har gemt %d sider.</string>
<string name="reading_no_cache">Følgende sektioner vil begynde at forbruge data trafik.</string>
<string name="reading_wifi_on">Wi-Fi forbindelse, start download senere.</string>
<string name="reading_cached_page_number">Side downloadet, forbruger ikke data trafik.</string>
<string name="too_many_subwindows_dialog_title">Pop-up vindue allerede åbent.</string>
<string name="too_many_subwindows_dialog_message">Kan ikke åbne flere pop-up vinduer.</string>
<string name="menu_homepage">Hjem</string>
<string name="menu_download">Downloads</string>
<string name="menu_setting">Indstillinger</string>
<string name="menu_exit">Afslut App</string>
<string name="menu_share_page">Del</string>
<string name="bookmark_clear_history">Slet</string>
<string name="bookmark_clear_confirm">Slet historik og listen over mest besøgte?</string>
<string name="export_bookmark_sucess">Bogmærker eksporteret til SD-Kort!</string>
<string name="export_bookmark_failure">Fejl! Bogmærker ikke eksporteret!</string>
<string name="auto_data_backup">Automatisk Backup</string>
<string name="auto_data_backup_summary">Automatisk browser data backup.</string>
<string name="one_key_export">One Key Backup</string>
<string name="one_key_export_summary">Backup browser data til SD-Kortet.</string>
<string name="one_key_export_message">Dette vil tage backup af browser data til SD-Kortet... (/sdcard/miui_browser/backups/)</string>
<string name="one_key_import">One Key Importering</string>
<string name="one_key_import_summary">Importer browser data fra SD-Kort.</string>
<string name="one_key_import_message">Dette importerer browser data fra SD-Kortet.</string>
<string name="import_bookmark_sucess">Bogmærker importeret!</string>
<string name="import_bookmark_failure">Fejl ved importering af bogmærker!</string>
<string name="importing_favorite_files">Importerer Data ...</string>
<string name="please_select_a_file_to_import">Vælg datafil</string>
<string name="exported_bookmark_file_name">Mine Favoritter</string>
<string name="exported_data_file_name">Mine Data</string>
<string name="loading_video">Indlæser Video</string>
<string name="home_page_title">Hjem</string>
<string name="yellow_page_title">Top Sider</string>
<string name="forum_post_info">\\n\\n\\n[size=2][color=Silver]Sendt Fra MIUI Browser[/color][/size]</string>
<string name="rss_tab_hot">Populære</string>
<string name="setting_common">Generelle</string>
<string name="setting_advanced">Advancerede</string>
<string name="setting_common_title">Generelle Indstillinger</string>
<string name="setting_advanced_title">Advancerede Indstillinger</string>
<string name="pref_default_text_encoding">Kodning</string>
<string name="pref_default_text_encoding_dialogtitle">Tekst kodning</string>
<string name="pref_default_zoom">Zoom Indstillinger</string>
<string name="pref_default_zoom_dialogtitle">Zoom Indstillinger</string>
<string name="pref_user_agent">Bruger Agent</string>
<string name="pre_auto_clean_cache_title">Ryd cache ved afslutning</string>
<string name="pre_auto_clean_cache_summary">Ryd automatisk cache når browser afsluttes.</string>
<string name="exit_confirmation">Spørg ikke igen</string>
<string name="pre_exit_confirmation">Bekræft afslut</string>
<string name="pre_exit_confirmation_summary">Bekræft før der afsluttes</string>
<string name="file_picker_new_folder">Ny mappe</string>
<string name="file_picker_sdcard_not_found">SD-Kort ikke fundet, kontroller venligst enheden er sluttet til PC'en.</string>
<string name="pref_about_message_credit">Specielt tak: jpsiemer@XDA</string>
<string name="find_dot">Søg på side</string>
<string name="no_match">Ingen resultater</string>
<string name="one_match">1 resultat</string>
<string name="few_match">%d/%d</string>
<string name="auto_brightness">Auto Lysstyrke</string>
<string name="geolocation_permissions_prompt_message">%s vil gerne have din lokation</string>
<string name="geolocation_permissions_prompt_share">Del lokation</string>
<string name="geolocation_permissions_prompt_dont_share">Afvis</string>
<string name="geolocation_permissions_prompt_remember">Husk præference</string>
<string name="geolocation_permissions_prompt_toast_allowed">Denne side har adgang til information om din lokation. Kan ændres i Indstillinger -> Advanceret -> Sikkerhed</string>
<string name="geolocation_permissions_prompt_toast_disallowed">Denne side har ikke adgang til information om din lokation. Kan ændres i Indstillinger -> Advanceret -> Sikkerhed</string>
<string name="create_desktop_shortcut">Opret genvej på skrivebordet</string>
<string name="menu_search">Find på side</string>
<string name="browserFrameNetworkErrorLabel">Data forbindelsesproblem</string>
<string name="browserFrameFileErrorLabel">Problem med file</string>
<string name="browser_widget_tab_news_text">Nyheder</string>
<string name="browser_widget_tab_websites_text">Hjemmesider</string>
<string name="browserFrameFormResubmitLabel">Bekræft</string>
<string name="browserFrameFormResubmitMessage">Siden du prøver at se indeholder data der allerede har været indlæst (\"POSTDATA\"). Hvis du gensender data, vil enhver handling der er udført på siden (såsom online køb) blive gentaget.</string>
<string name="play_video">afspil video</string>
<string name="player_not_found">afspiller ikke fundet.</string>
<string name="pref_single_click">Handling for enkelt klik</string>
<string name="pref_long_click">Langt tryk handling</string>
<string name="home_top_sites">Top sider</string>
<string name="home_bookmark_favorite">Bogmærk favorit</string>
<string name="home_history">Historik</string>
<string name="category">Kategori</string>
<string name="site">Side</string>
<string name="goto_bookmark_favorite">Gå til favoritter</string>
<string name="goto_history">Gå til historik</string>
<string name="bookmark_menu_sort_by_default">Standardsortering</string>
<string name="bookmark_menu_sort_by_name">Sorter via navn</string>
<string name="bookmark_menu_add_folder">Ny mappe</string>
<string name="bookmark_menu_add_favorite">Ny favorit</string>
<string name="bookmark_menu_import_favorites">Importer favoritter</string>
<string name="bookmark_menu_export_favorites">Eksporter favoritter</string>
<string name="bookmark_folder_edit_succeed_message">Redigering af mappe fuldført!</string>
<string name="bookmark_folder_edit_failed_message">Fejl ved redigering af mappe!</string>
<string name="website_edit_succeed_message">Redigering af side fuldført</string>
<string name="website_edit_failed_message">Fejl ved redigering af side!</string>
<string name="cannot_enter_full_screen">Kan ikke vise fuld-skærm</string>
<string name="exit_text_selection">Rediger vlagt tekst</string>
<string name="pref_max_navigate_page_topsites_title">Maks favoritter og top sider</string>
<string name="pref_max_navigate_page_topsites_summary">Maksimalt antal favoritter og top sider</string>
<string name="pref_max_navigate_page_topsites_message_succeed">%d indstilling fuldført!</string>
<string name="pref_max_navigate_page_topsites_message_failed">%d fejl ved indstilling!</string>
<string name="permlab_downloadCompletedIntent">send download besked</string>
<string name="permdesc_downloadCompletedIntent">Tillad at sende besked om fuldført download til applikation</string>
<string name="download_unknown_title"><Ingen titel></string>
<string name="notification_filename_separator">,\u0020</string>
<string name="notification_filename_extras">\u0020og %d download</string>
<string name="notification_download_complete">Download fuldført</string>
<string name="notification_download_failed">download mislykkedes</string>
</resources>

The error points at the last line in the strings that says "</resources>", it says there's a mismatch, but i don't get it, the english and danish strings are exactly the same??? Probably there's an easy answer, but i just can't see it :)

EDIT: FOUND THE PROBLEM!

a tag wasn't closed correctly, was just hard to find as the error didn't specify which line..

Oh and there was an apostrophe error too, but that's irrelevant ;)