android NotFoundException: String resource ID #0x1

来源:互联网 发布:谷歌seo怎么做 编辑:程序博客网 时间:2024/05/21 17:36

今天写程序遇到这异常提示:android  NotFoundException: String resource ID #0x1

   int userid = (Integer) appInfo.get(keyString[0]);


   holder.userid.setText(userid);  这一行提示有问题,后来百度了一下,说是类型转换问题。


   转换一下类型就好:

holder.userid.setText(Integer.toString(userid));

1 0
原创粉丝点击