Android Integer.parseInt java.lang.NumberFormatException: Invalid int解决方法

解决方法:

http获取的字符串minutes去空字符串处理minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n", "").trim(),

Integer.parseInt(minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n", "").trim(),10);

你可能感兴趣的:(exception)