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:
- [Solved] Android.content.res.Resources$NotFoundException: String resource ID #0x0
- Settext notes of Textview (How to Use)
- [Solved] Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2
- Convert Object to List>, avoiding Unchecked cast: ‘java.lang.Object’ to ‘java.util.List
- IntelliJ idea error: (24, 35) Java: constant string too long
- [Solved] Java Call Error: java.lang.IllegalArgumentException: wrong number of arguments
- [Solved] Mybatis Mapping Error: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘id’ in ‘class java.lang.String
- [Solved] Syntax error, parameterized types are only available if source level is 1.5
- Type safety: unchecked cast from object to