J
J
jonasas2015-05-27 11:59:29
Android
jonasas, 2015-05-27 11:59:29

Why is android.content.res.Resources$NotFoundException thrown?

Good day.
I have written an Android application and published it on Google Play. Found a crash report today.

android.content.res.Resources$NotFoundException: String resource ID #0x7f050008
at android.content.res.Resources.getText(Resources.java:315)
at android.content.res.Resources.getString(Resources.java:401)
at android.content.Context.getString(Context.java:376)

In resources, I have three xml for strings: general, ru and en. The line that threw the exception is declared in ru and en.
Why could this happen? Before that, there were installations from different countries, there were no problems.
The reviews left two negative reviews about the fall in Polish and French.
Help me please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Marina, 2015-05-27
@jonasas

There is no special resource defined for either Polish or French, so it will be taken from the general one. But this line is not in the general, here is the NotFoundException.

J
jonasas, 2015-05-27
@jonasas

I myself think that the lines from the en resource should be moved to the general one. I'm right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question