Resourceid not being identified in mobile Application using Appium

Hi,

no_such_element error is thrown when we try to access the resourceid and send values.
Below the code snippet:
MobileElement mobel=((AndroidDriver)driver).findElementByAndroidUIAutomator(“new UiSelector().resourceId(” <>");
MobileElement email=(MobileElement) driver.findElementByClassName(“android.widget.FrameLayout”).findElementById("<>");

Please suggest some other solution.

Thanks

Probably need to add a ‘wait’ so that the screen and elements render properly:

http://appium.io/docs/en/commands/session/timeouts/implicit-wait/