Tag Archives: android.content.res.Resources$NotFoundException: String resource ID #0x0

[Solved] Android.content.res.Resources$NotFoundException: String resource ID #0x0

Error prompt:

Android.content.res.Resources$NotFoundException: String resource ID #0x0

Error reason:

The parameter of int type is used in settext()

Error resolution:

Settext() converts an integer type to a string type. The method is as follows:

1.String s=String.valueOf(i);

2.String s=Integer.toString(i);

3.Striing s=””+i;