猿码

android.view.InflateException: B

2019-01-30  本文已影响8人  璇_c2be

01-30 14:14:35.089 26718 26718 E AndroidRuntime: android.view.InflateException: Binary XML file line #10: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

01-30 14:14:35.089 26718 26718 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

01-30 14:14:35.089 26718 26718 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:761)

01-30 14:14:35.089 26718 26718 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)

原因是在xml布局中,将View 写成了view,汗~~~

上一篇 下一篇

猜你喜欢

热点阅读