Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kotlin使用时报此问题。不支持kotlin么。。。 #51

Open
lianghao721 opened this issue Jan 20, 2021 · 0 comments
Open

kotlin使用时报此问题。不支持kotlin么。。。 #51

lianghao721 opened this issue Jan 20, 2021 · 0 comments

Comments

@lianghao721
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant