Skip to content

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

@midou221

Description

@midou221

👟 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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions