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.

Wrong format for the empty Android string file

See original GitHub issue

Hi there!

as a followup for https://github.com/box/mojito/issues/546, after using the flag --inheritance-mode REMOVE_UNTRANSLATED during pulling the string, I’m getting the following file (string.xml) if the strings are not translated:

<?xml version="1.0" encoding="utf-8"?>


</resources>

Problem is here that opening tag <resource> is missing.

Also, we need to have a copyright statement on the top of the file, is there any possibility to define a template for the pull?

Many thanks in advance!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
aurambajcommented, Feb 20, 2020

the prolog is <?xml version="1.0" encoding="utf-8"?>. So I guess the copyright is missing for the same reason <resources> is missing, it just got drop with the text unit that has no translation. I’ll try to have a look tonight.

0reactions
nzakharchenkocommented, Feb 21, 2020

@jeeyi great! thank you for so fast replay and fix! 😻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Format string XXX is not a valid format string so it should ...
This error will be shown if you have the same string in multiple string files (translations), but one of them doesn't have proper...
Read more >
android:versionCode gets set to empty string causing ...
Expected behaviour is that the version number value provided in the project properties or in the original manifest file will be used in...
Read more >
Improve your code with lint checks
The lint tool checks your Android project source files for potential bugs and optimization ... Change the severity of hardcoded strings to "error"...
Read more >
String (Java Platform SE 8 )
Initializes a newly created String object so that it represents an empty character sequence. Note that use of this constructor is unnecessary since...
Read more >
How to Handle the Unclosed String Literal Error in Java
Python unclosed string literal error refers to the Java compiler failing to interpret a string literal due to the missing of a double...
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