taycaldwell / riot-api-java

Riot Games API Java Library
http://taycaldwell.github.io/riot-api-java/
Apache License 2.0
190 stars 73 forks source link

problem in the api instance #135

Closed pams95 closed 6 years ago

pams95 commented 6 years ago

Hi, I have an error when i want to instanciate the api with my key :

the error code : https://hastebin.com/osaxemutem.txt

the code who gives me problems : ApiConfig config = new ApiConfig().setKey("****");

I use Eclipse and the API is installed by maven.

thanks to help me ! pams_95

taycaldwell commented 6 years ago

Post the contents of your pom.xml file please.

pams95 commented 6 years ago

Sorry I am new with maven : POM.xml : https://hastebin.com/abuxiwirus.xml

pams95 commented 6 years ago

@taycaldwell did u see my reply

taycaldwell commented 6 years ago

The pom file is fine. Your classpath is obvi fucked up, but it's hard to help diagnose the issue without knowing how you are running the project. How are you running the project? Can you provide your Classpath?

If you're using an IDE try cleaning your project.

You also don't need to declare Gson as a dependency unless you need that specific version for something else.

pams95 commented 6 years ago

Ok so I need to clean my project. I will reply later to say if it’s good. THX a lot ! Pams