在毕加索没有加载的大图像(来自文件),没有看到明显的错误

Mic*_*ael 7 android picasso

我正在编写一个应用程序,它从设备上的图库中获取图像列表,然后在GridView中显示它们.在我的适配器中,我有以下代码(其中宽度和高度是它将被放置的视图的宽度和高度):

PicassoSingleton.with(mContext).load("file://" + imageUri).resize(getImageWidth(), getImageHeight()).centerInside().placeholder(R.drawable.image_placeholder).error(R.drawable.image_error).into(holder.image);
Run Code Online (Sandbox Code Playgroud)

在大多数设备上,这非常有效.但是,在拍摄的照片非常大的某些设备上(例如Samsung Galaxy S5-16MP),某些图像无法加载,并显示错误资源.我从Picasso调试中看不到任何明显的日志消息,只有以下内容:

D/Picasso(20171): Main        errored      [R7]+501ms
Run Code Online (Sandbox Code Playgroud)

我认为这是由于内存问题,但我不确定如何解决这些问题.是否有可能告诉毕加索压缩图像?或者还有其他我想念的东西?

谢谢

Mic*_*ael 5

此问题似乎与https://github.com/square/picasso/issues/539相关联

更新到最新版本的Picasso(此处为2.3.3-SNAPSHOT)修复此问题