PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

Error when using GoogleAutoCredentialProvider

Open meher19 opened this issue 10 years ago • 43 comments

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);

meher19 avatar Aug 14 '16 09:08 meher19

https://github.com/Grover-c13/PokeGOAPI-Java/blob/Development/sample/src/main/java/com/pokegoapi/examples/CatchPokemonAtAreaExample.java

FabianTerhorst avatar Aug 18 '16 15:08 FabianTerhorst

Im getting 4 pokemons back.

FabianTerhorst avatar Aug 18 '16 15:08 FabianTerhorst

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.

meher19 avatar Aug 22 '16 11:08 meher19