How to click on this OK button can anyone help?

@Aleksei

add

capabilities.setCapability("enableMultiWindows", true);

Added but still not working

share page source on this page at https://gist.github.com/

Yes, Shared successfully

link pls to look at it and you code (if you have) where you try to tap on it.
did you try just simple selector:

"new UiSelector().text(\"OK\")"

Currently I’m using this line :

driver.findElementByXPath("//android.widget.LinearLayout[@text=‘OK’]").click();