美文网首页猿码
android.view.InflateException: B

android.view.InflateException: B

作者: 璇_c2be | 来源:发表于2019-01-30 14:18 被阅读8次

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,汗~~~

相关文章

网友评论

    本文标题:android.view.InflateException: B

    本文链接:https://www.haomeiwen.com/subject/apfcsqtx.html