Not able to Get Performance Data

Hello!

I used code from https://appiumpro.com/editions/5, downloaded all needed dependencies and I am still getting error: failure|564x89

I do not know if methods are already obsolete or I forgot to put some values somewhere …
If there is need I can upload my code.

I would be really grateful for any advice.

Error:
org.openqa.selenium.json.JsonException: Unable to determine type from: C. Last characters read:{
“desiredCapabilities”:{“app”:C

Part of code:

@Test
public void testMemoryUsage() throws Exception {
File classpathRoot = new File(System.getProperty(“user.dir”));
File appDir = new File(classpathRoot, “…/apps/”);
File app = new File(appDir.getAbsolutePath(), “StreetSonar.Android.StreetSonar.Android”);

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“deviceName”, “ALE-L21”);
capabilities.setCapability(“automationName”, “UiAutomator2”);
capabilities.setCapability(“app”, app);