Did not get confirmation UiAutomator2 deleteSession worked

Hi,

I am very new to appium so I am not sure how to resolve but I need urgent help! I am getting the following error when I try to run appium in python:
‘Did not get confirmation UiAutomator2 deleteSession
worked’

I am running my script on nox emulator. Things appear to work fine when I run with UiAutomator1 however issues arise when I use UiAutomator2.

Here are my capabilities:

desired_capabilities = {
“deviceName”: “127.0.0.1:62001”,
“platformName”: “Android”,
“browserName”: “Google”,
“automationName”: “UiAutomator2”,
“platformVersion”: “7.1.2”,
}

Any help would be greatly appreciated