“Unable to connect to adb. Check if adb is installed correctly.” message appears when try to take screen shot in UIautomator viewer.
open terminal and type adb and check if you have a result if yes you need to check ADROID_HOME or something like that if no you need to install android again
thanks bilal, it’s resolved now.