'findElement' not working with Appium 1.15.1

Environment : Mac
Platform: Android
Appium: 1.15.1
Appium-java-client:4.1.2
Simulator:Nexus6

I am trying to run the automation script to login to our react native app . But after launching the app , appium is failing to find or locate elements with error.
[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError .

I am not using uiautomator in my code. The element is clearly visible in the screen.

Any help is appreciated.

Appium Logs for reference:

The server is running

[BaseDriver] Waited for 18395 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…

[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError

[BaseDriver] Waited for 18913 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…

[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError

[BaseDriver] Waited for 19430 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…

[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError

[BaseDriver] Waited for 19947 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…

[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError

[BaseDriver] Waited for 20464 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…

[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError

[BaseDriver] Waited for 20980 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…

[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError

[BaseDriver] Waited for 21498 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…

[W3C] Matched W3C error code ‘no such element’ to NoSuchElementError

[BaseDriver] Waited for 22020 ms so far

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8201/wd/hub/session/a2b008e4-1202-4eb2-a535-b7577a471d53/element] with body: {“strategy”:“id”,“selector”:“Accept”,“context”:"",“multiple”:false}

[WD Proxy] Got an unexpected response with status 404: {“sessionId”:“a2b008e4-1202-4eb2-a535-b7577a471d53”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat