GlideException: Failed to load resource……java.net.SocketTimeoutException(failed to connect to xxx)

Posted 舒泱

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GlideException: Failed to load resource……java.net.SocketTimeoutException(failed to connect to xxx)相关的知识,希望对你有一定的参考价值。

报错信息:

class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 cause:
java.net.SocketTimeoutException(failed to connect to xxx from 192.168.0.xxx after 2500ms)
call GlideException#logRootCauses(String) for more detail

       

       

       

问题描述:

android Studio连手机真机调试,在公司电脑上能运行的代码,在家用笔记本电脑连内网却运行不出来,报错信息如上。

       

       

       

原因:电脑和手机不在同一局域网,电脑连了内网,手机没连内网,代码里的链接就访问不了。

以上是关于GlideException: Failed to load resource……java.net.SocketTimeoutException(failed to connect to xxx)的主要内容,如果未能解决你的问题,请参考以下文章

Glide加载图片出错(class com.bumptech.glide.load.engine.GlideException: Failed to load resource)

Android,Firestore:GlideException:无法加载资源

安装Intel HAXM:"failed to configure driver unknown error. failed to open driver"

failed to load resource怎么解决?

maven打包出错: Failed to clean project: Failed to delete

Android Studio 3.0预览版本 Error:Gradle: failed to create directory 解决方案