question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix warnings about string resources 'without required default value'

See original GitHub issue

Summary:

There are a bunch of warnings about string resources without the required default value (i.e. a fallback in strings.xml). As these strings are not used throughout the app I think we should remove them.

The main benefit is that it’ll be easier to search for failures in the logs as the string resources have the text ‘failed’ in them which is annoying when going through Travis logs trying to find useful info.

Steps to reproduce:

Run a process manifest gradle task.

Logs:

> Task :app:processBetaReleaseManifest
warn: removing resource fr.free.nrw.commons.beta:string/contributions_subtitle without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/login_failed_password without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/login_failed_username without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/media_detail_media_title without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/multiple_uploads_title without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/preference_tracking without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/preference_tracking_summary without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/share_license_summary without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/starting_multiple_uploads without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/upload_image_problem_duplicate without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/uploads_pending_notification_indicator without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/use_wikidata without required default value.
> Task :app:processProdDebugManifest
warn: removing resource fr.free.nrw.commons:string/contributions_subtitle without required default value.
warn: removing resource fr.free.nrw.commons:string/login_failed_password without required default value.
warn: removing resource fr.free.nrw.commons:string/login_failed_username without required default value.
warn: removing resource fr.free.nrw.commons:string/media_detail_media_title without required default value.
warn: removing resource fr.free.nrw.commons:string/multiple_uploads_title without required default value.
warn: removing resource fr.free.nrw.commons:string/preference_tracking without required default value.
warn: removing resource fr.free.nrw.commons:string/preference_tracking_summary without required default value.
warn: removing resource fr.free.nrw.commons:string/share_license_summary without required default value.
warn: removing resource fr.free.nrw.commons:string/starting_multiple_uploads without required default value.
warn: removing resource fr.free.nrw.commons:string/upload_image_problem_duplicate without required default value.
warn: removing resource fr.free.nrw.commons:string/uploads_pending_notification_indicator without required default value.
warn: removing resource fr.free.nrw.commons:string/use_wikidata without required default value.

Would you like to work on the issue?

No, but I would be happy to review.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
domdomeggcommented, Mar 19, 2019

I think these are in master. e.g. login_failed_username is present in values-af/strings.xml

0reactions
vanshikaaroracommented, Mar 20, 2019

@domdomegg I have raised a PR for this here. Kindly review 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android gradle disable removing resources without default value
Android resource linking failed Output: warn: removing resource com.myproject:string/menu_item_copy without required default value.
Read more >
tools:locale="en" does not remove warnings [142590628]
The thing is that there is no issue to fix. The string is not translated to 'en-rGB' and this is fine because there...
Read more >
Android resource linking failed - April Brother
Android resource linking failed Output: warn: removing resource com.aprbrother.aprilbeacondemos:string/advinterval without required default ...
Read more >
String resources | Android Developers
A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources ...
Read more >
res/values/strings.xml - platform/packages/apps/Settings
<string name="sdcard_unmount" product="default">Unmount SD card</string>. <!-- Used for diagnostic info screens, precise translation isn't needed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found