com.kms.katalon.core.exception.StepFailedException Unable to create a new remote session. Please check the server log for more details. Original error: Failed to locate opened application window with appId

I have tried to reinstall it multiple times but not working as of now.

And also I have to write an automation script as i mentioned below for fixing the same. But still couldn’t find the root cause of the issue. facing the same.

public static void testSetUp() throws Exception {
		WindowsDriver driver = null;
		DesiredCapabilities capability = new DesiredCapabilities();

		capability.setCapability("ms:experimental-webdriver", true);
		capability.setCapability("app","C:zzzzzz.exe");
		//capability.setCapability("ms:waitForAppLaunch", "30");
		capability.setCapability("platformName", "Windows");
		capability.setCapability("deviceName", "Windows10Machine");

		/* Start WinAppDriver.exe so that it can start listening to incoming requests */
		StartWinAppDriver();

		try {			
			driver  = new WindowsDriver(new URL("http://127.0.0.1:4723/"), capability);
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
public static StartWinAppDriver() {
		try
		{
			Desktop desktop = Desktop.getDesktop();

			File file = new File("C:\\Program Files (x86)\\Windows Application Driver\\WinAppDriver.exe");
			
			/* Check if there is support for Desktop or not */
			if(!Desktop.isDesktopSupported())
			{
				System.out.println("not supported");
				return;
			}

			if (file.exists())
			{
				System.out.println("Open WinAppDriver.exe\n");
				try {
					desktop.open(file);
				}
				catch(IOException e)
				{
					desktop.open(file);
				}
			}
		}
		catch (IOException e)
		{
			e.printStackTrace();
			System.out.println("Encountered Exception\n");
			throw new RuntimeException(e);
		}
	}