Error: android.content.res.resources$notfoundexception:string resource ID XXXX
Cause: Generally occurs in the parameter int resId error, you assign string to int's resId, so the compiler can not find the correct resource then error.
In the simplest case, check your toast.maketext () Ah textview.settext. Functions, which typically have several overloads, such as:
Textview.settext (charsequence text);
Textview.settext (int resId);
......
If you accidentally pass an int value to it, then it will not show the int value, but run to the project to find a corresponding resource ID, of course, is not found, so the error.
Workaround:
If you want to display the int value, convert int to string or charsequence.
You can force the conversion to string after the int value + "". Easy to use.
android.content.res.resources$notfoundexception:string Resource ID XXXX