Uiautomatorviewer - Registry editing has been disabled by your administrator error

I am getting below error when I try to launch UIAutomatorviewer. just in a blink of a second it goes off without launch the app

UI

Same issue faced, how did you solved this