After appium upgrade to v1.16.0 android tests don't work

I have tried to see if I can find similar issues on this forum but failing to find that, I am asking if someone can please help me here. My tests use to run on the older version of the appium but now after the upgrade to a newer version, my tests have stopped working. I don’t see any error in the log file (appium) but the code does not find the element in the simulator. I am attaching the test file and the log file if someone could help me. I have uploaded all relevant files so that someone can easily debug and find the problem.

The app does get installed on the simulator and opens up but the click on line number 31 in file “” does not happen and I get an exception:

[RemoteTestNG] detected TestNG version 6.14.2
Jan 01, 2020 1:05:11 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

FAILED: testSwipe

Partial logcat output below:

org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {element-6066-11e4-a52e-4f735466cecf=1f962411-d4c8-4f37-90d9-9f34ea7986c6, ELEMENT=1f962411-d4c8-4f37-90d9-9f34ea7986c6}
Build info: version: ‘3.14.0’, revision: ‘aacccce0’, time: ‘2018-08-02T20:05:20.749Z’
System info: host: ‘Safdars-MacBook-Air.local’, ip: ‘fe80:0:0:0:18ee:960a:f96f:5348%en0’, ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.2’, java.version: ‘1.8.0_102’

Driver info: driver.version: AndroidDriver

at org.openqa.selenium.remote.RemoteWebDriver.findElement(
at io.appium.java_client.DefaultGenericMobileDriver.findElement(
at io.appium.java_client.AppiumDriver.findElement(
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(
at io.appium.java_client.DefaultGenericMobileDriver.findElementByXPath(
at io.appium.java_client.AppiumDriver.findElementByXPath(
at tutorial.Swipe.testSwipe(

Thanks! (2.0 KB) (2.6 KB)
appium.log (32.7 KB)