gpt4 book ai didi

Android picasso,报错原因

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:28:37 26 4
gpt4 key购买 nike

如何在 picasso 中获取错误描述:

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

Callback onError( https://square.github.io/picasso/javadoc/index.html ) 方法也没有提供任何参数,我得到了错误图像,但无法弄清楚为什么,logcat 也是沉默的。添加了互联网权限。

感谢您的帮助。

编辑

问题:Picasso library stopped working today with facebook graph picture links

最佳答案

我遇到了同样的问题,我通过以下方式解决了它:

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 picasso,报错原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27798391/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com