写了个demo,一直报错

Caused by: java.lang.IllegalStateException: Required view 'tv1' with ID 2131492943 for field 'textView' was not found. If this view is optional add 'Nullable' annotation.

检查很多遍,原因是因为把b i n d( t h i s)写到了setContentView前面,,导致无法绑定View

相关文章:

  • 2021-09-22
  • 2021-07-29
  • 2021-08-25
  • 2021-09-30
  • 2021-07-07
  • 2021-06-11
  • 2021-05-12
  • 2021-08-04
猜你喜欢
  • 2021-04-13
  • 2021-11-23
  • 2021-11-03
  • 2021-10-23
  • 2021-10-21
  • 2021-05-29
  • 2021-11-24
相关资源
相似解决方案