Back

reference to setEndpoint is ambiguous

  • 0
  • Android
RiChu
29 Nov, 2024, 05:42

hi guys im trying to connect to Appwrite but i get this error? btw im super new to android Java development

TypeScript
                ^
both method setEndpoint(String) in Client and method setEndpoint(String) in Client match```

i have `{implementation("io.appwrite:sdk-for-android:6.0.0")}` and set `AppwriteClient.init(getApplicationContext());` in my MainActivity
TL;DR
Developers are experiencing an "ambiguous reference to setEndpoint" error when trying to connect to Appwrite in Android Java development. This is due to a conflict in the method name "setEndpoint." To fix this, specify which class the method should be called from like `AppwriteClient.setEndpoint("https://cloud.appwrite.io/v1")` or `Client.setEndpoint("https://cloud.appwrite.io/v1")` to clarify the ambiguity.
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