Unable to find the elements for Android versions 7 and above

Unable to execute for Android versions 7 and above whereas the same code is working for android 6 version.

MAC OS X: macOs High Sierra (10.13.6)
Appium: 1.9.1
Java client jar: 6.01
Android Version: 8.0.0

Desired Capabilities:

cap.setCapability(MobileCapabilityType.DEVICE_NAME, “Galaxy S8”);
cap.setCapability(MobileCapabilityType.PLATFORM_NAME, “Android”);
cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, “8.0”);
cap.setCapability(MobileCapabilityType.APP, fs.getAbsolutePath());
cap.setCapability(“automationName”, “uiautomator2”);
cap.setCapability(“appPackage”, “com.beautystack.app”);
cap.setCapability(“appActivity”, “com.beautystack.app.MainActivity”);
cap.setCapability(“deviceOrientation”, “portrait”);
cap.setCapability(“appiumVersion”, “1.9.1”);

My Code:
driver.findElementByXPath("//android.widget.EditText[@text=‘Email’]").sendKeys("[email protected]");

Please have a look and I am stuck up as it is not working for android later versions

Can you please post the Appium logs, it helps us understand the issue better

I have used latest appium beta version 1.9.2 beta it worked Thank you