Unable to use pushFile method in Appium

Unable to use pushFile method in Appium.

Java Client: 6.1.0

I’m following this link: http://appium.io/docs/en/commands/device/files/push-file/

But while trying to add in the project its showing error