Android LayoutFlate中的空指针异常毫无意义。为什么?
NPE轰炸的代码行:Android LayoutFlate中的空指针异常毫无意义。为什么?,android,android-layout,Android,Android Layout,NPE轰炸的代码行: ViewGroup inflate = (ViewGroup) layoutInflater.inflate(R.layout.liker,null); 充气的签名是(int-layoutId,View-viewRoot) 使用视图而不是视图组。请检查inflate method returns View这在我身上发生过很多次,但在我的情况下,如果我清理项目,它是resolvednope,在清理之后仍然会得到它:07-01 01:11:15.628:ERROR/Andro
ViewGroup inflate = (ViewGroup) layoutInflater.inflate(R.layout.liker,null);
充气的签名是(int-layoutId,View-viewRoot)
使用视图而不是视图组。请检查inflate method returns View这在我身上发生过很多次,但在我的情况下,如果我清理项目,它是resolvednope,在清理之后仍然会得到它:07-01 01:11:15.628:ERROR/AndroidRuntime(15223):由:java.lang.NullPointerException引起的:你能发布更多代码吗?我看不出其他代码有什么关系