私はフレスコライブラリーを使用しようとしています。私も前にそれを使用し、それが働いていたが、今、私が手何らかの理由: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
マイxmlファイル:
<?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);
}
}
私はそれを持っています私のマニフェスト:android:name=".MyApplication"
私が持っている唯一の問題は、draweeviewです。ログインや情報の取得など、他のすべての作業を行うことができます。
あなたは 'fresco'ライブラリを使用していますか? –
はい、私はそれを使用しています –