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

有个问题想请教一下 #64

Open
JohnWayneHong opened this issue Nov 5, 2024 · 0 comments
Open

有个问题想请教一下 #64

JohnWayneHong opened this issue Nov 5, 2024 · 0 comments

Comments

@JohnWayneHong
Copy link

JohnWayneHong commented Nov 5, 2024

我看咱们项目中是引用了chatgpt-java 这个库,其中的okhttp版本用的是3.14.9,但是我实际项目中用的okhttp版本是4.10.0,这就在往请求发送后,程序会报错闪退,请问我该怎么解决这个,期待您的解惑
image

FATAL EXCEPTION: OkHttp Dispatcher Process: com.ggb.nirvanahappyclub.test, PID: 11789 java.lang.NoSuchFieldError: No field instance of type Lokhttp3/internal/Internal; in class Lokhttp3/internal/Internal; or its superclasses (declaration of 'okhttp3.internal.Internal' appears in /data/app/~~CfuST8eiVwyTGeFyPZv0iA==/com.ggb.nirvanahappyclub.test-pSNLWEHNh7eOHOMQKUkCOQ==/base.apk!classes20.dex) at okhttp3.internal.sse.RealEventSource.processResponse(RealEventSource.java:77) at okhttp3.internal.sse.RealEventSource.onResponse(RealEventSource.java:56) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at java.lang.Thread.run(Thread.java:1012)

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