Wow afwang, that worked for me. Thanks a lot for your inputs.
As per the "findElementByAndroidUiAutomator" signature, we need to provide strings.
I thought we should only provide this strings as resourceId(\"com.example:id/hello_world\") or text(\"hello_world\")