Android crashes are often caused by a resource containing %1$ s
when %1$s
was intended.
To my surprise, Android Studio does not show these syntax errors:
↑ The real syntax error above is the %1$ s
(makes the app crash), not the ellipsis that Android Studio highlights.
How to check for resource variable typos in Android Studio?
I am looking for the equivalent of lint --check StringFormatInvalid
.
Context: Many semi-automatic language translation tools break variables, making apps crash.