Appium scripts are working fine in local environment but when we deploy the same on AWS device farm script is not able to identify the elements

I am using below configuration for Appium script development:

· Framework type : Page object model/ Data driven
· App type : Hybrid
· Appium Version: 1.8.1
· Development IDE – Eclipse
· Object identifier : UIAutomator
· Test Type – Appium Java TestNG
· Android Device used for local Development/testing– Samsung Galaxy 8

The appium scripts are working fine in local environment using below configuration/tool but when we deploy the same on AWS device farm script is not able to identify the elements.

Can anyone successfully able to execute Appium + android +testng+ java based script on AWS device farm?

Thanks in advance!