You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug Report: Incompatibility with OkHttp 5.x β NoClassDefFoundError: okhttp3.internal.UtilΒ #78
@midou221 hi there, thanks for raising this issue. can you please share the full stack trace of the error so we can pinpoint which internally removed API is being used by the appwrite sdk?
@midou221 hi there, thanks for raising this issue. can you please share the full stack trace of the error so we can pinpoint which internally removed API is being used by the appwrite sdk?
Hereβs the full stack trace
Caused by: java.lang.ClassNotFoundException: Didn't find class "okhttp3.internal.Util" on path: DexPathList[[zip file "/data/app/org.example-Ro1f0UMkG_IWRQNxsaF_cA==/base.apk"],nativeLibraryDirectories=[/data/app/org.example-Ro1f0UMkG_IWRQNxsaF_cA==/lib/arm64, /data/app/org.example-Ro1f0UMkG_IWRQNxsaF_cA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /product/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at io.appwrite.cookies.ListenableCookieJar.decodeHeaderAsJavaNetCookies(ListenableCookieJar.kt:88)Β at io.appwrite.cookies.ListenableCookieJar.loadForRequest(ListenableCookieJar.kt:66)Β at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:75)Β at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)Β at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:74)Β at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)Β at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:208)Β at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:530)Β at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)Β at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)Β at java.lang.Thread.run(Thread.java:784)Β
The crash is triggered because the Appwrite SDK still references okhttp3.internal.Util, which was removed in OkHttpβ―5.x.
Activity
[-]π Bug Report: Incompatibility with OkHttp 5.x β NoClassDefFoundError: okhttp3.internal.Util[/-][+]Bug Report: Incompatibility with OkHttp 5.x β NoClassDefFoundError: okhttp3.internal.Util[/+]ChiragAgg5k commentedon Jul 14, 2025
@midou221 hi there, thanks for raising this issue. can you please share the full stack trace of the error so we can pinpoint which internally removed API is being used by the appwrite sdk?
ChiragAgg5k commentedon Jul 14, 2025
i am not able to find anything particular in the changelog
https://square.github.io/okhttp/changelogs/changelog/
midou221 commentedon Jul 14, 2025
Hereβs the full stack trace
Caused by: java.lang.ClassNotFoundException: Didn't find class "okhttp3.internal.Util" on path: DexPathList[[zip file "/data/app/org.example-Ro1f0UMkG_IWRQNxsaF_cA==/base.apk"],nativeLibraryDirectories=[/data/app/org.example-Ro1f0UMkG_IWRQNxsaF_cA==/lib/arm64, /data/app/org.example-Ro1f0UMkG_IWRQNxsaF_cA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /product/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at io.appwrite.cookies.ListenableCookieJar.decodeHeaderAsJavaNetCookies(ListenableCookieJar.kt:88)Β at io.appwrite.cookies.ListenableCookieJar.loadForRequest(ListenableCookieJar.kt:66)Β at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:75)Β at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)Β at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:74)Β at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)Β at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:208)Β at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:530)Β at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)Β at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)Β at java.lang.Thread.run(Thread.java:784)ΒThe crash is triggered because the Appwrite SDK still references
okhttp3.internal.Util, which was removed in OkHttpβ―5.x.pedronveloso commentedon Feb 18, 2026
The fix here is simple, AppWrite should be using OkHttp 5.X . Being stuck in 4.X makes no sense. Please fix
ItzNotABug commentedon Mar 29, 2026
This is indeed legit. a quick dep bump to 5.x should ideally fix the issue π