Getting Unsupported protocol: 2 in Android 8.1.0

I am automating a native Andorid application using Android version Oreo 8.1.0. In eclipse am trying to select the device and click Screen Capture or Dump view Hierarchy for UI Automator option and I am getting " Unsupported protocol: 2" error in console. But the same I am trying to inspect the element using uiautomatorviewer from command-line its working in Android version Oreo 8.1.0. Anyone faced this kind of issues?

Appium Server: 1.13.0
Java-client: 7.0.0