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

How to add this .jar to Android Studio?

Open David6390 opened this issue 10 years ago • 2 comments

Im triying to execute the example but i can't. I added the .jar to the libs folder. Added compile files('libs/pokego.jar') to my gradle file.

Everything compile and execute with no problem, i put the code for google account and this come up:

Caused by: java.lang.NoClassDefFoundError: POGOProtos.Networking.Envelopes.RequestEnvelopeOuterClass$RequestEnvelope$AuthInfo

Anyone know what is going on?, i tried cleaning and rebuilding project with no success.

David6390 avatar Jul 28 '16 04:07 David6390

Either use jitpack (https://jitpack.io/#Grover-c13/PokeGOAPI-Java/0.2) or clone the source and build the jar yourself. If you choose the latter option don't forget git submodule update --init.

Aphoh avatar Jul 28 '16 06:07 Aphoh

We added some explaination on how to import the api into a project in the readme, should be enough to help you.

vmarchaud avatar Jul 28 '16 21:07 vmarchaud