Execute test on physical devices

Device is connected via ADB Wi-Fi. It is listed also in Device Manager.

When I tried to execute a testcase, got the following error:
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

I use this code to set driver:

setDriver (new AndroidDriver (new URL (""),uiAutomator2OptionsMyRedmi())

    private static UiAutomator2Options uiAutomator2OptionsRedmi() {
        final UiAutomator2Options uiAutomator2Options;
        uiAutomator2Options = new UiAutomator2Options().setAvd("Xiaomi_23021RAA2Y")
        return uiAutomator2Options;