Android Integer.parseInt java.lang.NumberFormatException: Invalid int解决方法时间:2023-03-08 15:59:13 解决方法: http获取的字符串minutes去空字符串处理minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n", "").trim(), Integer.parseInt(minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n", "").trim(),10);