Binary XML file line #41: Attempt to invoke virtual method 'boolean java.lang.String.equals(java....

记录一个问题:
Binary XML file line #41: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

告诉我说41行有问题:

     41:    <view
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginTop="12dp"
                android:background="@color/line2"/>

看看有什么问题?

看了半天发现,view要大写View!!!

推荐阅读更多精彩内容