Compile error in resources

Asked by Johan Vervloet on 2011-01-31

Hello,

I am new to Android development, and in an attempt to learn, I try to compile existing open source projects. But I have a problem compiling mustard.

I cloned the master branch from gitorious, but I get these error messages in the Console:

[2011-01-31 15:51:17 - macnos-clone] W/ResourceType( 3379): Bad XML block: header size 2503 or total size 164324392 is larger than data size 0
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values/strings.xml:153: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values/strings.xml:153: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-de/strings.xml:26: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-de/strings.xml:26: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-es/strings.xml:122: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-es/strings.xml:122: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-fr/strings.xml:121: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-fr/strings.xml:121: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-it/strings.xml:145: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-it/strings.xml:145: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-nb/strings.xml:121: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-nb/strings.xml:121: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-nl/strings.xml:114: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-nl/strings.xml:114: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-pl/strings.xml:25: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-pl/strings.xml:25: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-pt/strings.xml:105: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-pt/strings.xml:105: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-pt-rBR/strings.xml:121: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-pt-rBR/strings.xml:121: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-zh/strings.xml:121: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/values-zh/strings.xml:121: error: Unexpected end tag string
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/account_create.xml:26: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_account_new').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/account_create.xml:36: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_account_type').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/account_settings.xml:26: error: Error: No resource found that matches the given name (at 'text' with value '@string/menu_account_settings').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/avatar.xml:20: error: Error: No resource found that matches the given name (at 'text' with value '@string/select_file').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/dent_add.xml:21: error: Error: No resource found that matches the given name (at 'prompt' with value '@string/menu_account').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/dent_add_media.xml:21: error: Error: No resource found that matches the given name (at 'prompt' with value '@string/menu_account').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/dent_add_media.xml:76: error: Error: No resource found that matches the given name (at 'text' with value '@string/select_file').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/filters_list.xml:26: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_filters').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/filters_list.xml:45: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_add').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/legacy_public_list.xml:12: error: Error: No resource found that matches the given name (at 'text' with value '@string/timeline_public').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/notice_action.xml:18: error: Error: No resource found that matches the given name (at 'text' with value '@string/menu_reply').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/notice_action.xml:23: error: Error: No resource found that matches the given name (at 'text' with value '@string/menu_forward').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/notice_action.xml:29: error: Error: No resource found that matches the given name (at 'text' with value '@string/menu_fav').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/oauthsettings.xml:24: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_oauth_settings').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/oauthsettings.xml:43: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_oauth_refresh_keys').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/oauthsettings.xml:53: error: Error: No resource found that matches the given name (at 'text' with value '@string/btn_oauth_refresh_keys_value').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/oauthsettings.xml:67: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_oauth_new_keys').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/oauthsettings.xml:81: error: Error: No resource found that matches the given name (at 'text' with value '@string/btn_oauth_new_keys_value').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/public_list.xml:13: error: Error: No resource found that matches the given name (at 'text' with value '@string/timeline_public').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/settings.xml:26: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_settings').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/settings.xml:36: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_global_settings').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/settings.xml:45: error: Error: No resource found that matches the given name (at 'text' with value '@string/lbl_oauth_settings').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/layout/timeline.xml:55: error: Error: No resource found that matches the given name (at 'text' with value '@string/please_wait_opening').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:6: error: Error: No resource found that matches the given name (at 'title' with value '@string/preferences_timeline').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:8: error: Error: No resource found that matches the given name (at 'defaultValue' with value '@string/pref_rows_fetch_default').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:8: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_rows_fetch_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:8: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_rows_fetch_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:8: error: Error: No resource found that matches the given name (at 'dialogTitle' with value '@string/pref_rows_fetch_dialog_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:16: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_merge_timeline_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:16: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_merge_timeline_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:25: error: Error: No resource found that matches the given name (at 'title' with value '@string/preferences_general').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:27: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_new_repeat_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:27: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_new_repeat_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:32: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_refresh_after_post_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:32: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_refresh_after_post_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:37: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_auto_refresh_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:37: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_auto_refresh_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:42: error: Error: No resource found that matches the given name (at 'defaultValue' with value '@string/pref_auto_refresh_interval_default').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:42: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_check_updates_interval_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:42: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_check_updates_interval_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:42: error: Error: No resource found that matches the given name (at 'dialogTitle' with value '@string/pref_check_updates_interval_dialog_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:51: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_spamreport_on_block').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:51: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_spamreport_on_block_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:58: error: Error: No resource found that matches the given name (at 'title' with value '@string/preferences_geolocation').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:60: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_enable_geo_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:60: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_enable_geo_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:66: error: Error: No resource found that matches the given name (at 'defaultValue' with value '@string/pref_geo_fuzzy_default').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:66: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_geo_fuzzy_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:66: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_geo_fuzzy_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:66: error: Error: No resource found that matches the given name (at 'dialogTitle' with value '@string/pref_geo_fuzzy_dialog_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:77: error: Error: No resource found that matches the given name (at 'title' with value '@string/preferences_notifications').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:80: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_check_updates_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:80: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_check_updates_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:85: error: Error: No resource found that matches the given name (at 'defaultValue' with value '@string/pref_check_updates_interval_default').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:85: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_check_updates_interval_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:85: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_check_updates_interval_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:85: error: Error: No resource found that matches the given name (at 'dialogTitle' with value '@string/pref_check_updates_interval_dialog_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:94: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_ringtone_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:94: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_ringtone_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:101: error: Error: No resource found that matches the given name (at 'title' with value '@string/vibrate_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:101: error: Error: No resource found that matches the given name (at 'summary' with value '@string/vibrate_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:111: error: Error: No resource found that matches the given name (at 'title' with value '@string/preferences_layout').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:114: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_legacy_layout_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:114: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_legacy_layout_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:119: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_bottom_buttons_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:119: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_bottom_buttons_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:125: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_new_button_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:125: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_new_button_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:131: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_compact_view_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:131: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_compact_view_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:137: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_font_size_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:137: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_font_size_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:137: error: Error: No resource found that matches the given name (at 'dialogTitle' with value '@string/font_size').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:147: error: Error: No resource found that matches the given name (at 'title' with value '@string/preferences_optional').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:150: error: Error: No resource found that matches the given name (at 'title' with value '@string/pref_send_snapshot_title').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/xml/preferences.xml:150: error: Error: No resource found that matches the given name (at 'summary' with value '@string/pref_send_snapshot_summary').
[2011-01-31 15:51:17 - macnos-clone] /home/johanv/workspace/macnos-clone/res/menu/account_setup_oauth_option.xml:22: error: Error: No resource found that matches the given name (at 'title' with value '@string/lbl_oauth_settings').

Did anybody else have similar problems?

Thank you,
johanv
http://identi.ca/johanv

Question information

Language:
English Edit question
Status:
Solved
For:
Mustard Edit question
Assignee:
No assignee Edit question
Solved by:
Johan Vervloet
Solved:
2011-02-08
Last query:
2011-02-08
Last reply:
2011-02-02
Michele Azzolari (macno) said : #1

Hi johanv,
latest Android SDK gives error if resources have multiple substitutions without the %n$s syntax

I pushed a commit [1] to fix it.
Please run a git pull a let me know if it works

[1] http://gitorious.org/mustard/macnos-clone/commit/944f4ab275be31b82faa343214710a82e71ff3c0

Johan Vervloet (jvervloet) said : #2

Hi,

Thanks for looking into it, and sorry for my late reaction.

I pulled the latest version, and I don't have these resource related errors anymore. But I have new ones :-)

Description Resource Path Location Type
mustardoauthkeyurl cannot be resolved or is not a field OAuthKeyFetcher.java /macnos-clone/src/org/mustard/android/core line 45 Java Problem
The method doShort(String, HashMap<String,String>) of type B1tit must override a superclass method B1tit.java /macnos-clone/src/org/mustard/urlshortener line 26 Java Problem
The method doShort(String) of type B1tit must override a superclass method B1tit.java /macnos-clone/src/org/mustard/urlshortener line 32 Java Problem
The method getShorterName() of type B1tit must override a superclass method B1tit.java /macnos-clone/src/org/mustard/urlshortener line 52 Java Problem
The method getShorterName() of type Ur1ca must override a superclass method Ur1ca.java /macnos-clone/src/org/mustard/urlshortener line 14 Java Problem
The method onClick(DialogInterface, int, boolean) of type new DialogInterface.OnMultiChoiceClickListener(){} must override a superclass method GlobalSettings.java /macnos-clone/src/org/mustard/android/activity line 142 Java Problem
The method upload(Uri) of type PikchurUploader must override a superclass method PikchurUploader.java /macnos-clone/src/org/mustard/uploader line 12 Java Problem
twitpic cannot be resolved or is not a field Twitpic.java /macnos-clone/src/org/mustard/android/provider line 46 Java Problem

My build target is Android 1.6.

johanv
(I guess I will have to click 'problem solved' now, because the above errors are a new problem :))

Michele Azzolari (macno) said : #3

ok, rename res/values/keys-example.xml in res/values/keys.xml and remove comment tags

Johan Vervloet (jvervloet) said : #4

Thanks! That's one error message solved again :)