I am trying to use the picasso library to loading the image store in the mediastore. When I called load(imageview, callback), the picasso call onFail instead of onSuccess. How do I know why the image was not loaded successfully?
相关问题
- Views base64 encoded blob in HTML with PHP
- How can I create this custom Bottom Navigation on
- How to get the background from multiple images by
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
In case you want to use Picasso with Kotlin and lambda expression it could be as short as this:
...and then you can load image as usual:
Use builder:
Edit
For version 2.71828 they have added the exception to the onError callback:
When you use callback, the picaso will call method onSuccess and onError!
Have you added internet permission in
Manifest
? With Kevin's answer here, Please see the exception log and post the exception here.