Ich versuche, die Fresko-Bibliothek zu verwenden. Früher habe ich es vor zu und es funktionierte, aber jetzt, aus irgendeinem Grund, den ich bekommen:Fehler aufblähenden Klasse com.facebook.drawee.view.SimpleDraweeView
Unable to start activity ComponentInfo{com.example.home.template/com.example.home.template.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class com.facebook.drawee.view.SimpleDraweeView
Meine XML-Datei:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/profileImage"
fresco:actualImageScaleType="centerCrop"
android:layout_width="200dp"
android:layout_gravity="center_horizontal"
android:layout_height="200dp" />
</LinearLayout>
MyApplication:
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
FacebookSdk.sdkInitialize(this);
}
}
Ich habe es in mein Manifest: android:name=".MyApplication"
Das einzige Problem, das ich habe, ist mit dem draweeview. Ich kann all die anderen Dinge tun, wie das Einloggen und das Aufnehmen von Informationen.
verwenden Sie 'Fresko' Bibliothek? –
ja, ich bin es –