<code class="language-java hljs " style="display: block; padding: 0px; background: transparent; color: inherit; box-sizing: border-box; font-family: "Source Code Pro", monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; margin: 0px;">Error inflating class com.facebook.drawee.view.SimpleDraweeView
android.view.InflateException: Binary XML file line #<span class="hljs-number" style="color: rgb(0, 102, 102); box-sizing: border-box; margin: 0px; padding: 0px; list-style: none outside none; word-break: normal; word-wrap: break-word;">14</span>: Error inflating class com.facebook.drawee.view.SimpleDraweeView</code>
解决方法:
把初始化Fresco调整到setContentView(R.layout.activity_main);
上边
- 图片不显示
Fresco不支持wrap_content,将其改成固定值或者match_content