java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null 

我的错误原因:

这里写成了view.findViewByid(),应该写成v1.findViewById()

 

posted on 2023-03-17 00:26  201812  阅读(263)  评论(0编辑  收藏  举报