
I am trying to register users auth and database client side Android JAVA-SDK, setKey(****)
throws an error
// Initialize the Appwrite SDK
Client client = new Client();
client.setEndpoint("https://[ENDPOINT]/v1").setProject("[PROJECT_ID]").setKey("[API_KEY]");
error message Cannot resolve method 'setKey' in 'Client'

Hi 👋

In Java, you dont need to set key if this is a client side app. setKey is needed only for server to server communication.

ok. THanks.

[SOLVED] Cannot resolve method 'setKey' in 'Client'
Recommended threads
- Google signin with appwrite
I want to use Google sign in in android and create session from idToken using appwrite. But, i don't know if it's achievable or not. because i don't want to use...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
