Hey, recently i wanted to setup a new android project and when setting up the appwrite endpoint i got this error :
Could it be because i have setup the Android as Java instead of Kotlin ?? (i'm used to java that's why)
Are you using Appwrite cloud?
no self hosted
also here is the code directly
and using my URL does the same (i just wanted to hide it for the screenshot)
and the setProject is fine, no error on it
Looks like there's a bug and it's being worked on in https://github.com/appwrite/sdk-generator/pull/881
hmmm ok i will wait for this pull to be merged and see if it will fix the issue
while waiting putting the URL inside the constructor works (but the pull will remove it in favor of the get/set)
Ya I'm surprised this is possible because it isn't in our other SDKs and we want to keep them consistent
i'm supprised too since i already use the node and web which don't have this
also looking at the error i do see two getter and setter for the endpoint in the file File from commit : https://github.com/appwrite/sdk-generator/blob/892fcf5a239f7379f3f8063000797ade95980d5e/templates/android/library/src/main/java/io/package/Client.kt.twig
line 48 to 52 and 182 - 190
Recommended threads
- [1.9.5] Google OAuth do not work anymore
After migrating to 1.8.1 to 1.9.0 then 1.9.5 and login through Google I get on Flutter app "Missing redirect URL" "Your OAuth login flow is missing a proper re...
- Fatal error: Allowed memory size of 5368...
Hi how solved it worker-messaging infinite reload ` Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in /usr/src/co...
- How to successfully migrate from 1.9.0 t...
I've tried the automatic tool for migration but my Appwrite (self-hosted) went to a broken state. My functions wouldn't deploy anymore, some things just didn't ...