Ui automator viewer--> Device screenshot, Reason : Error while creating temporary file to save snapshot : null
<p>When I click on Ui automator viewer after connecting my mobile device--> Device screenshot throws error </p>

<p>Error : 
Error obtaining UI hierarchy  Reason : Error while creating temporary file to save snapshot : null</p>

<p>Please let me know how to fix this issue?. Thanks </p>