报错Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)'

报错原因:

Caused by: android.view.InflateException: Binary XML file line #0: Attempt to invoke virtual method ‘boolean java.lang.String.equals(java.lang.Object)’ on a null object reference

虽然知道是 xml 出错了,但是一直找不到是哪里有问题,AndroidStudio 也没给我出错提示,看了下面这个文章恍然大悟!

转载:
https://blog.csdn.net/itxiaolong3/article/details/72772262

你可能感兴趣的:(Android)