Android mobile tests job running on Virtual Machine always returns error

When a job containing Android mobile tests is executed on Virtual Agent, each test fails stating “WebDriverException: ‘application name’ is still running after 500ms timeout”.