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

http://www.blogjava.net/anchor110/articles/355670.html


就是个转型错误......很好...


引用

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());

你可能感兴趣的:(exception)