UiPath is sending all Mobile capabilities as only String and not accepting any other Type even after having others Types under dropdown

Hi All,

I can see UiPath Studio and MDM is accepting all mobile Capabilities as String only even after having others Types option under dropdown and throwing error

When ever i am trying to connect Android device i am getting below Error:

A new session could not be created. Details: io.appium.uiautomator2.common.exceptions.InvalidArgumentException: Invalid ‘shouldUseCompactResponses’ setting value type. Got: java.lang.String. Expected: java.lang.Boolean. (SessionNotCreated)

From the logs i found out the capability “shouldUseCompactResponses’” is getting sent as String/Text value , whereas the Appium server is expecting a Boolean.

To cross check this error, we tried connecting again by adding capability ‘shouldUseCompactResponses’ as Text instead of Boolean and we were able to reproduce this issue in open-source Appium-Inspector. This is the same error message we are encountering in UiPath.

Let me know if any one has encountered this issue.

Below are my Configuration:

  • We are testing on Mobile Center Devices (real devices on Cloud).
  • Appium Version - v2beta40
  • All Android Devices
  • UiPath.MobileAutomation.Activities=24.2.0 -preview

Is there any solution for this issue? I am facing the similar problem

I have the similar issue posted here io.appium.uiautomator2.common.exceptions.InvalidArgumentException: Invalid 'shouldUseCompactResponses' setting value type. Got: java.lang.String. Expected: java.lang.Boolean. (SessionNotCreated)

If anyone found the solution let me know.

  • Uninstall preview package:
UiPath.MobileAutomation.Activities 24.2.0-preview
  • Install stable version.
  • Use stable Appium server (avoid beta40).
  • Remove:
shouldUseCompactResponses
  • Retry Android connection.

I am using the latest stable version: 25.10.2

You can downgrade it and check it once. If doesn’t work then you can upgrade it again and check it.

I tried downgrading to 23.4.0 and 24.10.0 still same issue. Currently I am using latest stable versions. Also, I tried using preview versions too but no use. ;(