美文网首页
android.content.res.Resources$No

android.content.res.Resources$No

作者: Yasin27878 | 来源:发表于2017-03-06 09:48 被阅读345次

android.content.res.Resources$NotFoundException: Resource ID #0x0

  • 错误原因:系统找不到资源ID.
  • 常见错误是:
  • TextView中setText(value) 方法中使用了int类型的值,系统误以为是对应的R文件中的资源文件,结果找不到而报错.
  • 样式文件更新 找不到对应的属性 例如:style中的界面theme 的item name=alertDialogStyle 之前版本是好的 更新到新的版本 需要改成 name= android:alertDilogTheme

相关文章

网友评论

      本文标题:android.content.res.Resources$No

      本文链接:https://www.haomeiwen.com/subject/gypygttx.html