Back

Could not resolve com.squareup.okhttp3:okhttp-bom:4.1

  • 0
  • Android
Chandra Sekhar
22 Apr, 2024, 09:28

Could not resolve all files for configuration ':app:devDebugCompileClasspath'.

Could not resolve com.squareup.okhttp3:okhttp-bom:4.10.0. Required by: project :app > io.appwrite:sdk-for-android:4.0.1 No matching variant of com.squareup.okhttp3:okhttp-bom:4.12.0 was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'dev', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but: - Variant 'apiElements' capability com.squareup.okhttp3:okhttp-bom:4.12.0 declares a component for use during compile-time: - Incompatible because this component declares a platform and the consumer needed a library

TL;DR
Issue: Dependency resolution error for com.squareup.okhttp3:okhttp-bom version 4.1. Solution: Update the version of okhttp-bom to 4.1 in the project dependencies to resolve the issue.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more