[Solved] android.content.res.Resources$NotFoundException: String resource ID #0xffffff85

java.lang.RuntimeException: Unable to start activity ComponentInfo:android.content.res.Resources$NotFoundException: String resource ID #0xffffff85

Reason: It usually happens when the parameter int resId is wrong, you assign String to the int resId, so the compiler can’t find the correct resource and report an error.

For example, I set the bill amount to int type

But in setText list.get(i).getNum() is int type, so the error is reported

Solution 1: change the parameter to String type

Solution 2: use String.valueOf(list.get(i).getNum())

Similar Posts: