android– 错误输出类com.facebook.drawee.view.SimpleDraweeView

概述我正在尝试使用壁画库.我之前也使用它并且它正在工作,但现在,由于某种原因,我得到:UnabletostartactivityComponentInfo{com.example.home.template/com.example.home.template.MainActivity}:android.view.InflateException:BinaryXMLfileline#26:Errorinflatingcla

我正在尝试使用壁画库.我之前也使用它并且它正在工作,但现在,由于某种原因,我得到:

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>

我的应用程序:

public class MyApplication extends Application {    @OverrIDe    public voID onCreate() {        super.onCreate();        FacebookSdk.sdkInitialize(this);    }}

我在我的清单中有它:androID:name =“.MyApplication”

我遇到的唯一问题是draweevIEw.我可以做所有其他的事情,比如登录和获取信息.

解决方法:

在我写Fresco.initialize(这)的情况下;在setContentVIEw(R.layout.myxml)之前;帮助过我.

更新:

你有FacebookSdk.sdkInitialize(this);而不是你的myapplication中的Fresco.initialize(this)

总结

以上是内存溢出为你收集整理的android – 错误输出类com.facebook.drawee.view.SimpleDraweeView全部内容,希望文章能够帮你解决android – 错误输出类com.facebook.drawee.view.SimpleDraweeView所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1116188.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存