Cannot locate an element by this Strategy on mac os

have an element which is not working in mac os the seme element which is working in Windows OS, with the same versions of appium, selenium

below is my code

OnBoardingElements(AppiumDriver driver)
PageFactory.initElements(new AppiumFieldDecorator(driver), this);

@AndroidFindBy(id = “com.karwatechnologies.karwataxi:id/intro_btn_skip”)
public MobileElement skip;

@FindBy(id = “com.karwatechnologies.karwataxi:id/intro_btn_skip”)
public MobileElement sskip;

@AndroidFindBy(className = “android.widget.Button”)
public MobileElement clsskip;

I tried with all the elements, none of the elements is working, all throw the same error

appium version: 1.9.1
Mac os : 10.14
Real android device : ver: 7.0 (motto XT)
selenium : 3.11
java-cleint : 6.0.0 BETA1

org.openqa.selenium.NoSuchElementException: Can’t locate an element by this strategy: By.chained({By.className: android.widget.Button})
at io.appium.java_client.pagefactory.AppiumElementLocator.findElement(
at io.appium.java_client.pagefactory.interceptors.InterceptorOfASingleElement.intercept(
at KarwaApp.TaxiBookingAndroid.OnBoardingTestCases.onBoarding(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(

Have you figured out the solution? I am having same issue