I tried using the given approach to capture the screenshot of a connected Android device but the compiler gives the error that it cannot resolve 'AndroidDebugBridge' and other com.android.ddmlib packages.
Please help me in getting the solution to my problem.