OkHttp3
OkHttp3 copied to clipboard
kotlin使用时报此问题。不支持kotlin么。。。
@MrZhousf val builder: OkHttpUtil.Builder = OkHttpUtil.Builder()//这里报错。 if (timeOut != 0) { builder.setReadTimeout(timeOut) } if (downloadFileDir != null && downloadFileDir.isNotEmpty()) { builder.setDownloadFileDir(downloadFileDir) }
Overload resolution ambiguity. All these functions match. public constructor Builder() defined in com.okhttplib.OkHttpUtil.Builder public open fun Builder(): OkHttpUtil.Builder! defined in com.okhttplib.OkHttpUtil