【发布时间】:2018-07-20 19:51:24
【问题描述】:
我想使用 Picasso 将一些图像从服务器加载到 imageView,但 Picasso 加载了其中一些图像,而其他图像没有加载。 有人知道这种情况的解决方案吗?
Picasso.with(context).setLoggingEnabled(true);
Picasso
.with(context)
.load("http://192.168.1.6:8080/images/" + retroRepo.getImages_hashes().trim())
.resize(200, 200)
.into(holder.imageView);
当我搜索 http://192.168.1.6:8080/images/myImage.jpg 时,它会显示图像。
【问题讨论】:
-
192.168.1.6:8080/images/myImage.jpg 图片未在浏览器中加载,请查看链接。
-
我在您的网址上没有看到图片。
-
设备是否连接到您的家庭wifi?
-
这是本地链接,所以它不起作用
-
我正在使用 localhost。我的设备已连接到家庭 wifi。