Failed to driver session. Check the device is configured for automation and try again

I am getting error in oppo A94 - developer option enabled and usb debugging enabled.

Able to see the mirroring screen for a while then error displayed

I have this problem on Oppo Reno 5. Do u solved problem?