Getting Method is not implemented error for using new Ashot() on Android

Hi,
I am using below keyword to take element screenshot of my Android mobile application.
After referring various topics from Katalon Community still unable to find any solution on this and getting below error.
Using Katalon Version 6.4 and Appium 1.8.1

rg.openqa.selenium.WebDriverException: Method is not implemented (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘PC-POOJA’, ip: ‘172.21.37.243’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.core.appium.driver.SwipeableAndroidDriver
Capabilities {AutomationName: UIAutomator2, PlatformName: Android, PlatformVersion: 8.1.0, app: C:\inSight_HEAD\Testing\Mob…, appActivity: "md5c62452dc3b0bd2f0854be40…, appPackage: “XXXXX.Android.V11”, autoGrantPermissions: true, automationName: uiautomator2, deviceId: emulator-5554, deviceName: emulator-5554 (Android SDK …, fullReset: false, javascriptEnabled: true, newCommandTimeout: 1800, noReset: true, platform: ANDROID, platformName: ANDROID, resetKeyboard: true, udid: emulator-5554, unicodeKeyboard: true}
Session ID: 3e8c5b42-fb57-4bde-a5fd-82d2712c774d

My Keyword :
def takeElementScreenshot(TestObject objectWithXpath)
{
AppiumDriver<?> driver = MobileDriverFactory.getDriver()
Screenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.scaling(1)).takeScreenshot(driver, driver.findElements(By.xpath(objectWithXpath.findPropertyValue(“xpath”))))
ImageIO.write(screenshot.getImage(), “jpg”, new File(System.getProperty(“usr.dir”)+“/image/ElementScreenshot.jpg”))
}

Can anyone please help me to resolve this issue ?