今天跑程序的時(shí)候,出現(xiàn)這樣的錯(cuò)誤:
android.content.res.Resources$NotFoundException:String resource ID #0x86
LogCat顯示出錯(cuò)行是:
if (bet.getStatus() != null) {
holder.statusView.setText(bet.getStatus());
}
開始的時(shí)候,死活找不出原因。
后來發(fā)現(xiàn)錯(cuò)誤原因是:
bet.getStatus()返回的是Integer類型,轉(zhuǎn)成String類型,即可,如下:
holder.statusView.setText("" + bet.getStatus());