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

Android okhttp 有的类总找不到 #650

Open
yzjjdcf opened this issue Sep 7, 2020 · 2 comments
Open

Android okhttp 有的类总找不到 #650

yzjjdcf opened this issue Sep 7, 2020 · 2 comments

Comments

@yzjjdcf
Copy link

yzjjdcf commented Sep 7, 2020

ava.lang.NoSuchMethodError: No interface method getBuffer()Lokio/Buffer; in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.wanplus.wp-AXuHLAi_jV58f7sBsVrL4w==/base.apk!classes4.dex)

okhttp用的最新4.8.1 ,DoraemonKit版本3.2.0,换过http3.X也不行,只要开了和okhttp业务相关的功能就崩溃,为什么会找不到呢?

@jtsky
Copy link
Collaborator

jtsky commented Sep 13, 2020

ava.lang.NoSuchMethodError: No interface method getBuffer()Lokio/Buffer; in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.wanplus.wp-AXuHLAi_jV58f7sBsVrL4w==/base.apk!classes4.dex)

okhttp用的最新4.8.1 ,DoraemonKit版本3.2.0,换过http3.X也不行,只要开了和okhttp业务相关的功能就崩溃,为什么会找不到呢?

okhttp版本过高,内部api不一致导致的。当前dokit只支持okhttp v3.12.1~v3.14+的版本

@yzjjdcf
Copy link
Author

yzjjdcf commented Sep 24, 2020

好了,期初我试了3.12的 ,还是不行,看demo 用的3.14的才好

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

2 participants