Error: android.content.res.resources$notfoundexception:string resource ID #0x1
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, there are many ways on Baidu.
Personally prefer to do this: after the int value + "", Force to string. Easy to use. ╮ (╯_╰) ╭
Exception handling android.content.res.resources$notfoundexception:string Resource ID #0x44