android - Null Pointer exception in layoutInflate makes no sense. why? -


the line of code npe bombs:

viewgroup inflate = (viewgroup) layoutinflater.inflate(r.layout.liker,null); 

inflate's signature (int layoutid, view viewroot)

http://developer.android.com/reference/android/view/layoutinflater.html

use view instead of viewgroup. please check inflate method returns view


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -