Fresco: Error inflating class com.facebook.drawee.view.SimpleDraweeView

Created on 21 Jun 2017  路  1Comment  路  Source: facebook/fresco

I am trying to load gif using Fresco Like this.

I have initialize Fresco.initialize(this); in Application onCreate() method.

In XML I just declare SimpleDraweeView like this.

   <com.facebook.drawee.view.SimpleDraweeView        

    android:id="@+id/draweeView"

    android:layout_width="200dp"

    android:layout_height="100dp"

    android:padding="5dp" />

I am using this in Adapter and in andpter inflating gives me error like this.
Error : android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.facebook.drawee.view.SimpleDraweeView

Can anyone tell me what is a problem?

Most helpful comment

sorry it's my mistake in gradle fresco version was 0.13 when I change to 1.3 it work now

>All comments

sorry it's my mistake in gradle fresco version was 0.13 when I change to 1.3 it work now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

satyarths picture satyarths  路  3Comments

liubaoyua picture liubaoyua  路  3Comments

rafaelekol picture rafaelekol  路  4Comments

qiiyue picture qiiyue  路  4Comments

goodev picture goodev  路  4Comments