Android项目调试报错:android.view.InflateException: Binary XML file line #17:
程序员文章站
2022-04-25 07:50:04
...
详细信息android.view.InflateException: Binary XML file line #17: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
<view
android:layout_width="260dp"
android:layout_height="4dp"
android:layout_marginTop="-50dp"
android:layout_gravity="center"
android:gravity="center"/>
解决:这里View应该大写。
推荐阅读
-
报错android.view.InflateException: Binary XML file line #11: Attempt to invoke virtual method 'boolean怎么解决?
-
报错android.view.InflateException: Binary XML file line #11: Attempt to invoke virtual method 'boolean怎么解决?
-
Android项目调试报错:android.view.InflateException: Binary XML file line #17:
-
报错android.view.InflateException: Binary XML file line #11: Attempt to invoke vir