Back

How to solve ArtifactResolveException

  • 0
  • Android
ice_on_my_veins
15 Apr, 2024, 20:30

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

TL;DR
Developers are encountering an ArtifactResolveException when using io.appwrite:sdk-for-android:5.0.0. The issue arises because version 5.0.0 is only compatible with Appwrite 1.5, whereas for Appwrite Cloud (https://cloud.appwrite.io), version 4.0.1 should be used. Ensure compatibility between Appwrite versions and SDK, as per the documentation provided at https://appwrite.io/docs/tutorials/android/step-1.
D5
15 Apr, 2024, 20:51

Where/when do you get this error?

D5
15 Apr, 2024, 20:51

Is this related to appwrite?

ice_on_my_veins
15 Apr, 2024, 20:51

yes

ice_on_my_veins
15 Apr, 2024, 20:52

i am getting this error when i write implementation("io.appwrite:sdk-for-android:5.0.0")

D5
15 Apr, 2024, 20:53

If you will use cloud (https://cloud.appwrite.io) you should use the version 4.0.1

ice_on_my_veins
15 Apr, 2024, 20:53

let me try

D5
15 Apr, 2024, 20:53

As the 5.0.0 is only for appwrite 1.5

ice_on_my_veins
15 Apr, 2024, 20:54
ice_on_my_veins
15 Apr, 2024, 20:54

i am using this documentation

D5
15 Apr, 2024, 20:54

As you see, it uses 4.0.1 too

D5
15 Apr, 2024, 20:55

But when do you get that error? Do you have implemented some part of the code?

ice_on_my_veins
15 Apr, 2024, 20:56

i have just written this piece of code implementation("io.appwrite:sdk-for-android:4.0.1")

D5
15 Apr, 2024, 20:59

What's your gradle version?

ice_on_my_veins
15 Apr, 2024, 20:59

8.4

ice_on_my_veins
15 Apr, 2024, 21:00

same error is coming even after writing implementation("io.appwrite:sdk-for-android:8.4.0")

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