One . There is an error
java.lang.NumberFormatException This sentence clearly tells us that the number format is abnormal
Two . Solution
Check Is it right? From you to string convert to int String Is it in digital format , If you don’t, you will report this kind of error