开发者

android.view.InflateException : Error inflating class android.widget.LinearLayout

"java.lang.RuntimeException: Unable to start activity ComponentInfo : android.view.InflateException: Binary XML file line #2: Error inflating class android开发者_StackOverflow.widget.LinearLayout"

I am getting this error can anyone help me?


We'd need a little more of your output to know for sure but my bet is your layout is lacking either layout_width or layout_height. Can you please post a little more extended context for your exceptions (a few lines before, a few lines after the line you already posted) ?


Same problem i faced,

At one of my inflate view i getting "android.view.InflateException", because i am using image of 1200x1200. I conveted it to 100x100 and now it working.


You may try removing tags like android:divider in the XML file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜