Android的毕加索,错误原因 [英] Android picasso, error reason

查看:132
本文介绍了Android的毕加索,错误原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在毕加索错误描述:

How do I get error description in picasso :

    Picasso.with(context)
        .load(getUrl())
        .placeholder(R.drawable.user_thumbnail_big)
        .error(android.R.drawable.ic_dialog_alert)
        .into(viewModel.userImg);

回调的onError 的https: //square.github.io/picasso/javadoc/index.html )方法,也没有提供任何参数,我得到错误的图像,但不能figureout为什么,logcat中也保持沉默。上网许可补充说。

Callback onError(https://square.github.io/picasso/javadoc/index.html) method also doesn't provide any arguments, I'm getting error images, but can't figureout why, logcat is also silent. Internet permission added.

感谢您的帮助。

修改

问题:<一href="https://stackoverflow.com/questions/22674680/picasso-library-stopped-working-today-with-facebook-graph-picture-links">Picasso库停止工作今天与Facebook图形图片链接

推荐答案

我有同样的问题,我通过解决它:

I had the same problem I solved it through :

借助全局实例监听接收HTTP例外到崩溃报告服务或分析服务报告上行。

The global instance listener receives HTTP exceptions for reporting upstream to a crash reporting service or analytics service.

问候: https://github.com/square/picasso/issues/379

public class MyClass implements Picasso.Listener {
    @Override
    public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {
    // Display the exception
    }
}

这篇关于Android的毕加索,错误原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆