How to perform horizontal swipe using 5.0.4 version of Appuim?
Use TouchActions for this.
Use latest versions of appium java client and server.
Refer to answer in below post