Appium script is not working on emulator resource-id and text displaying blank

Scripts are working fine on Real device however on Emulator resource-id and text are displaying blank

Can anybody look into this

FindBy(xpath="//android.widget.Image[@index=0]")
maybe will help it

Thanks for your reply.

Earlier, I tried with xpath using Index, It was working fine.

However, scripts are already developed and Objects and properties are already given(name & resource-id), so that I don’t want to change the all object’s properties.

Is there anything we can use to get required properties.