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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions