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

解决方法:

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

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

原文地址:https://www.cnblogs.com/94cool/p/3231689.html