Unable to find xpath using java

I am using appium studio 23.7.9 and create my test script with react native app.

I use the following xpath to find element which works in appium studio but not in my java program
By.xpath("//*[@id=‘RNE__Overlay’]")

Following is pom.xml of my java program

io.appium
java-client
9.0.0

    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>7.5.1</version>
    </dependency>

Please help