Leaderboards with libGDX RoboVM

0 votes

Hey!

 

I'm using libGDX for a cross platform game, android , desktop and iOS.

I've used the android SDK for the android version, and is working, same thing for desktop,

But what should I do for the iOS?

I've tried with the java SDK, but I'm getting errors such as  'no such method'

java.lang.NoSuchMethodError: org.apache.http.util.EntityUtils.consume(Lorg/apache/http/HttpEntity;)V

at com.shephertz.app42.paas.sdk.java.connection.RESTConnectorAsync.executeGet(RESTConnectorAsync.java)

at com.shephertz.app42.paas.sdk.java.game.ScoreBoardService.getTopNRankers(ScoreBoardService.java)

 

 

What should I Do?

A solution would be to use a rest api, and call POST or GET HttpRequests using the libGDX methods.

But I don't know what URL should I POST , which parameters, etc.

 

Thank you.

asked Dec 24, 2014 in App42 Cloud API-BaaS by paul.bv96 (31 points)
edited Dec 24, 2014 by paul.bv96

1 Answer

0 votes

Hello Paul,

The exception message which you have shared is occur when you have not added http library in your project reference. Please find the reference library from here & add in your project reference.

Let us know if it helps.

Himanshu Sharma

answered Dec 24, 2014 by hs00105 (2,005 points)
I've added all!
But I think that somehow, app42 uses other EntityUtils.java.. On desktop with the same jars it works.
I even tried adding newer apache libraries, but same result.
Hello Paul,
 Apologies for the delay in response.
Can you try with our J2ME SDK?, it does not use HTTP library and should work in this case. Please check and confirm.
https://github.com/shephertz/App42_J2ME_SDK
Himanshu Sharma
I would as soon as I will reach a mac.
Can you give me a link to the HTTP library? THanks.
Kindly find in my above comment, i have already shared.  Let me know if it helps.
Himanshu sharma
You gave me link to the j2me sdk, not hTTP library. :D
I apologies, we have already attached the http library with SDK folder. You can find it from here(https://github.com/shephertz/App42_J2ME_SDK).
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...