Bug Report: Incompatibility with OkHttp 5.x – NoClassDefFoundError: okhttp3.internal.Util

オープン
#78 コメント 5 件 リアクション 2 件 担当者 1 名 GitHub で見る

@ChiragAgg5k がすでに取り組んでいます。

2025年7月14日 から。

評価

この issue はまだ評価されていません。

説明

bug question
👟 Reproduction steps
  1. Add implementation("com.squareup.okhttp3:okhttp:5.1.0") to dependencies
  2. Use Appwrite SDK in your Android app
  3. Run a request that uses cookies
  4. Crash occurs at ListenableCookieJar
👍 Expected behavior
  • The Appwrite SDK should not rely on internal or private OkHttp classes.
  • ListenableCookieJar should use only public APIs (e.g. java.net.HttpCookie.parse(...)) to handle cookies.
  • App should work normally without crashing when using OkHttp 5.x.
👎 Actual Behavior
  • App crashes at runtime with the following error:
  • Caused by internal API usage that was removed in OkHttp 5.1.0.
  • Makes it impossible to use Appwrite SDK with the latest OkHttp versions.
🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Something else

🧱 Your Environment
  • Appwrite SDK version: 8.1.0
  • OkHttp version: 5.1.0
  • Android version: Any
  • Crash location: ListenableCookieJar.kt
👀 Have you spent some time to check if this issue has been raised before?
  • I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
主要言語
Kotlin
スター
156
フォーク
29
平均マージ
8時間 49分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appwrite/sdk-for-android のほかの issue

appwrite/sdk-for-android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。