Throwing error while capturing screenshot from UI automator viewer

Error while obtaining UI hierarchy XML file: com.android.ddmlib.shellCommandUnreponsive Exception

Details: Error while obtaining UI hierarchy XML file: com.android.ddmlib.ShellCommandUnresponsiveException
Error while obtaining UI hierarchy XML file: com.android.ddmlib.ShellCommandUnresponsiveException

Appium version: 1.6.5
windows OS 8.1
Thanks