android.content.res.Resources$NotFoundException: String resource ID #0x1

android.content.res.Resources$NotFoundException: String resource ID #0x1 at android.content.res.Resources.getText(Resources.java) at android.content.res.MiuiResources.getText(MiuiResources.java:133) at android.widget.TextView.setText(TextView.java)

1问题很简单解决,setText不能设置整数   解决方案的话:setText(num +””) 或者setText(String.valueOf(num));