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

今天跑程序的时候,出现这样的错误:

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

LogCat显示出错行是:
if (bet.getStatus() != null) {
            holder.statusView.setText(bet.getStatus());
}

开始的时候,死活找不出原因。
后来发现错误原因是:
           bet.getStatus()返回的是Integer类型,转成String类型,即可,如下:           
           holder.statusView.setText("" + bet.getStatus());
原文地址:https://www.cnblogs.com/visuals/p/4921477.html