Picasso: “无法创建 epoll 实例。errno=24”

创建于 2014-03-26  ·  3评论  ·  资料来源: square/picasso

在 ListView 中滚动几次后,我收到此错误并且我的应用程序崩溃。 我正在像这样在 getView 上将图像加载到 ImageView 中:

        Image = (ImageView)row.findViewById(R.id.image_list);
        Picasso Img= new Picasso.Builder(context).build();
        Img.load(R.drawable.test)
                .transform(new RoundedTransformation(6,0))
                .fit()
                .into(Image);

即使我删除了转换,它也会发生。

最有用的评论

请不要为每次下载创建一个新的Picasso实例。

使用单例。

Picasso.with(context).load(...)

或者创建自己的单身人士并使用它。

所有3条评论

请不要为每次下载创建一个新的Picasso实例。

使用单例。

Picasso.with(context).load(...)

或者创建自己的单身人士并使用它。

啊,解决了它。 谢谢,你可以解决这个问题...

另外,不要为每个请求创建一个新的RoundTransformation对象。

制作一次并重复使用。

此页面是否有帮助?
0 / 5 - 0 等级