Error when using GoogleAutoCredentialProvider
When i instanciate GoogleAutoCredentialProvider, i have this exception :
java.lang.NoClassDefFoundError: Failed resolution of: Lsvarzee/gps/gpsoauth/Gpsoauth;
I tested this with an oldest jar of the api, it's working, so there is an issue in the latest version of the api.
This is my code :
OkHttpClient httpClient = new OkHttpClient();
GoogleAutoCredentialProvider provider = new GoogleAutoCredentialProvider(httpClient, username, password);
PokemonGo go = new PokemonGo(provider, httpClient);
https://github.com/Grover-c13/PokeGOAPI-Java/blob/Development/sample/src/main/java/com/pokegoapi/examples/CatchPokemonAtAreaExample.java
Im getting 4 pokemons back.
it's finally works, it was a problem in my gps location format. so we do not need DeviceInfo and SendorInfo objects, and only 1 second delay is enought to make it work.