Error inflating class com.facebook.drawee.view.SimpleDraweeView
In my case writing Fresco.initialize(this);
before setContentView(R.layout.myxml);
helped me.
Update:
you have FacebookSdk.sdkInitialize(this);
instead of Fresco.initialize(this)
in your myapplication
I was getting this problem in API 19 devices just because I was using drawable vector as placeholder here
fresco:placeholderImage="@drawable/ic_phone"
After changing to PNG my problem was solved.
Dont forget to initialize it in your App as
class App : Application() {
override fun onCreate() {
super.onCreate()
Fresco.initialize(this)
}
}
as well as this line in manifest's application
android:name=".App"
Today I had the same problem. However, I forgot to add the property android:name=".MyApplication"
in the AndroidManifest.xml
.