Getting error while trying to capture the screenshot through uiautomate viewer

Getting error while trying to capture the screenshot through uiautomate viewer . Message is below
Screenshot eof

  1. My appium version 1.6
  2. Real device
    3 Android 7.1
  3. Android studio latest version .
    I am not able to get the xpath .
    Could anyone please kindly help me !

screenshot from error if you can please.