本文主要是介绍Android之OkDownload里面的OKHttp提示java.lang.IllegalArgumentException: Invalid URL port: “image“,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1 、问题
release版本线上奔溃如下
Fatal Exception: java.lang.IllegalArgumentException: Invalid URL port: "image"at okhttp3.t$a.a(HttpUrl.kt:63)at okhttp3.t$b.b(HttpUrl.kt:8)at okhttp3.y$a.b(Request.kt:5)at com.liulishuo.okdownload.j.e.b.<init>(DownloadOkHttp3Connection.java:4)at com.liulishuo.okdownload.j.e.b$a.a(DownloadOkHttp3Connection.java:7)at com.liulishuo.okdownload.j.g.c.a(ConnectTrial.java:3)at com.liulishuo.okdownload.j.g.b.a(BreakpointRemoteCheck.java:3)at com.liulishuo.okdownload.j.g.e.a(DownloadCall.java:17)at com.liulishuo.okdownload.j.b.run(NamedRunnable.java:3)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)at java.lang.Thread.run(Thread.java:761)
在windows环境下,使用 ProGuard 通过mapping.txt文件看混淆前的日志
这篇关于Android之OkDownload里面的OKHttp提示java.lang.IllegalArgumentException: Invalid URL port: “image“的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!