so now iam trying to get user game stats by this lib, but i dont understand what iam doing wrong:
SteamWebApiClient client = new SteamWebApiClient.SteamWebApiClientBuilder( "949DDA17D1A94CB9D387F2BE0727EB5F" ).build();
GetUserStatsForGameRequest request = new GetUserStatsForGameRequest.GetUserStatsForGameRequestBuilder("76561198140055626" ,570).buildRequest();
GetOwnedGames g = null;
try {
g = client.processRequest(request);
} catch (SteamApiException e) {
e.printStackTrace();
}
And also i have this error in Android:
FATAL EXCEPTION: main Process: com.ddpc.ggway, PID: 32475 java.lang.NoSuchMethodError: No static method encPath(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String; in class Lorg/apache/http/client/utils/URLEncodedUtils; or its super classes (declaration of 'org.apache.http.client.utils.URLEncodedUtils' appears in /system/framework/org.apache.http.legacy.boot.jar) at org.apache.http.client.utils.URIBuilder.encodePath(URIBuilder.java:191) at org.apache.http.client.utils.URIBuilder.buildString(URIBuilder.java:152) at org.apache.http.client.utils.URIBuilder.build(URIBuilder.java:120) at com.lukaspradel.steamapi.webapi.request.SteamWebApiRequestHandler.getRequestUri(SteamWebApiRequestHandler.java:83) at com.lukaspradel.steamapi.webapi.request.SteamWebApiRequestHandler.getRequestUrl(SteamWebApiRequestHandler.java:45) at com.lukaspradel.steamapi.webapi.request.SteamWebApiRequestHandler.getWebApiResponse(SteamWebApiRequestHandler.java:33) at com.lukaspradel.steamapi.webapi.client.SteamWebApiClient.processRequest(SteamWebApiClient.java:40) at com.ddpc.ggway.ui.activity.MainActivity.onCreate(MainActivity.java:64) at android.app.Activity.performCreate(Activity.java:6679) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Hello, help me please, iam try to get user game stats, first iam try to do like this:
http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=570&key=949DDA17D1A94CB9D387F2BE0727EB5F&steamid=76561198140055626&include_appinfo=1
but for dota i just have this response:
{ "playerstats": { "steamID": "76561198140055626", "gameName": "[STAGING] DotA 2" } }
so now iam trying to get user game stats by this lib, but i dont understand what iam doing wrong:
And also i have this error in Android:
FATAL EXCEPTION: main Process: com.ddpc.ggway, PID: 32475 java.lang.NoSuchMethodError: No static method encPath(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String; in class Lorg/apache/http/client/utils/URLEncodedUtils; or its super classes (declaration of 'org.apache.http.client.utils.URLEncodedUtils' appears in /system/framework/org.apache.http.legacy.boot.jar) at org.apache.http.client.utils.URIBuilder.encodePath(URIBuilder.java:191) at org.apache.http.client.utils.URIBuilder.buildString(URIBuilder.java:152) at org.apache.http.client.utils.URIBuilder.build(URIBuilder.java:120) at com.lukaspradel.steamapi.webapi.request.SteamWebApiRequestHandler.getRequestUri(SteamWebApiRequestHandler.java:83) at com.lukaspradel.steamapi.webapi.request.SteamWebApiRequestHandler.getRequestUrl(SteamWebApiRequestHandler.java:45) at com.lukaspradel.steamapi.webapi.request.SteamWebApiRequestHandler.getWebApiResponse(SteamWebApiRequestHandler.java:33) at com.lukaspradel.steamapi.webapi.client.SteamWebApiClient.processRequest(SteamWebApiClient.java:40) at com.ddpc.ggway.ui.activity.MainActivity.onCreate(MainActivity.java:64) at android.app.Activity.performCreate(Activity.java:6679) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)