Closed JackuXL closed 3 months ago
Any update on this issue, Have anyone find any solution or workaround for this issue.
Any update on this issue, Has anyone found any solution or workaround?
You can go ahead and down your AGP version to 8.1.1. I think it will work fine. @JackuXL
does anyoneknow how can i downgrade the AGP version?
Downgrading to lower AGP version will work in this case but I hope this issue gets resolved quickly for newer AGP versions.
I am facing the same issue, does that mean that we cannot compile with latest versions now? Is it because the appwrite is using the older version of the okhttp3:okhttp-bom:4.10.0
and the updated version according to the official okkhttp library is implementation("com.squareup.okhttp3:okhttp:4.12.0")
if we change this does the changes reflect to lot of files or simply upgrading in the sdk would work?
same issue... anyone could fix it?
Thank you for reporting the issue, we are looking into it and will resolve this soon.
same issue with AGP version 8.2.1 i had to downgrade it to 8.1.4
same issue in AGP version 8.2.0 any fixes for this except downgrading to 8.1.1 or 8.1.4?
any news here?
PR is not merged
any news here?
Not yet. PR was merged on SDK-Generator.
and now? :)
anyone here? :) ping
@christyjacob4 can we finally merge/build it?
😄 it's 2:30 AM in India, and I'm downgrading my AGP version, after investing half an hour on this
Issue could be avoided with excluding okhttp from appwrite library. But you have to add okhttp bom yourself.
implementation(libs.appwrite) {
exclude(group = "com.squareup.okhttp3", module = "okhttp-bom")
}
implementation(platform(libs.okhttp.bom))
implementation(libs.appwrite) { exclude
Hi! Can you explain how to exclude... I'm trying but got an error on "libs"....,
I'm quite new developing on Android.
Thanks in advance
implementation(libs.appwrite) { exclude
Hi! Can you explain how to exclude... I'm trying but got an error on "libs"....,
I'm quite new developing on Android.
Thanks in advance
Just add these { exclude(group = "com.squareup.okhttp3", module = "okhttp-bom") } after appwrite dependency declaration in your build.gradle. You also have to add okhttp to your dependencies.
Mine declaration uses version catalog, thats why it starts with "libs"
any update ?
@lohanidamodar 5.0.0 doesn't seem to have fixed this.
any update?
@lohanidamodar 5.0.0 doesn't seem to have fixed this.
Can you share the issue you get with 5.0.0? The latest version is using AGP 8.2.2 and okhttp 4.12.0
Not sure if relevant, but I'm using AGP 8.3.1 and Groovy.
Using implementation('io.appwrite:sdk-for-android:5.0.0')
gives the following warning:
Failed to resolve: com.squareup.okhttp3:okhttp-bom:4.12.0
Warning details:
- 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
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.3.1')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
I am facing the same issue and I need to use Appwrite urgently. Can any @Moderator please help??
I think you might have to just downgrade and pin AGP
versions for now.
Seems like there's a dependency conflict, in your gradle files.
👟 Reproduction steps
After adding "implementation("io.appwrite:sdk-for-android:4.0.0")" to my build.gradle.kts
👍 Expected behavior
BUILD SUCCESSFUL
👎 Actual Behavior
Failed to resolve: com.squareup.okhttp3:okhttp-bom:4.10.0
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Linux
🧱 Your Environment
Kotlin SDK
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?