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

来源:互联网 发布:nginx location 正则 编辑:程序博客网 时间:2024/06/08 08:00

问题描述:APP一运行时直接闪退,报异常:android.content.res.Resources$NotFoundException:String resource ID #0x86

问题原因:代码中有TextView上有tv.setText(s);方法,其实并不是找不到id,而是传参无效。tv.setTxet(String),而我传了一个Int。

解决办法:传入String类型

阅读全文
0 0
原创粉丝点击