Error : Failed to create driver session. Check device is configured for automation and try again

Greetings, team

While trying to view the device in recording mode, I received an error message stating, “Failed to create driver session.”. The following options were enabled:

  1. USB Debugging
  2. Install Via USB
  3. Stay Awake

The agent was uninstalled and reinstalled. Still getting the error.

Device Name : Redmi 10
Connection Type : Connected via USB