Can not use AccessibilityId with Selenium Grid 4 and Android

Platform: Android V9
Appium version: 1.20.2
Emulator and Real Device
Client language: C#
OS: Windows 10
App: Native app


Not sure if this is a bug in Appium, Selenium Grid 4 or my test code.
When running the same test against Selenium Grid V4 the following error is thrown when trying to interact with an element:
“Unable to determine element locating strategy for accessibility id”

After a bit of searching it seems that the W3C standard only supports ByXml and ByCSS.

Adding the capability: cap.AddAdditionalCapability(ChromeOptions.Capability, JObject.Parse("{“w3c”:false}")); did not work

Before I change all the object recognition strings from:
to something like:

I would like to know if there is anything else I should try as I am not a fan of using XPath as it is slower than using AccessibilityId.

Thank you

how about:

MobileBy.AndroidUIAutomator("new UiSelector().description(\"LoginHostEntry\")")

Thank you, I will give that a try.