asapsonterOriginal post
Rank 2: Process
I am trying to register users auth and database client side Android JAVA-SDK, setKey(****) throws an error
Java
// 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'
Summary
The user is getting an error message stating that there is no `setKey` method in the `Client` class. Another user points out that in Java, setting a key is only necessary for server-to-server communication, not client-side apps. The solution is to remove the `setKey` method from the code.