添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

@OnClick(R.id.button)
public void onViewClicked() {
String pic_url = "https://www.baidu.com/img/bd_logo1.png";
//        Glide.with(this).load(pic_url).into(imageView);
Picasso.get().load(pic_url).into(imageView);
}




W/Glide: Load failed for https://www.baidu.com/img/bd_logo1.png with size [96x96]

class com.bumptech.glide.load.engine.GlideException: Failed to load resource

There were 2 causes:

java.net.UnknownHostException(Unable to resolve host "www.baidu.com": No address associated with hostname)

java.io.FileNotFoundException(No content provider: https://www.baidu.com/img/bd_logo1.png)

call GlideException#logRootCauses(String) for more detail

Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE

There was 1 cause:

java.net.UnknownHostException(Unable to resolve host "www.baidu.com": No address associated with hostname)

call GlideException#logRootCauses(String) for more detail

Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed

There was 1 cause:

java.net.UnknownHostException(Unable to resolve host "www.baidu.com": No address associated with hostname)

call GlideException#logRootCauses(String) for more detail

Cause (1 of 1): class java.net.UnknownHostException: Unable to resolve host "www.baidu.com": No address associated with hostname

Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.content.res.AssetFileDescriptor, LOCAL

There was 1 cause:

java.io.FileNotFoundException(No content provider: https://www.baidu.com/img/bd_logo1.png)

call GlideException#logRootCauses(String) for more detail

Cause (1 of 1): class java.io.FileNotFoundException: No content provider: https://www.baidu.com/img/bd_logo1.png