Failed to create session

Getting below error while opening emulator in appium inspector, appreciate your help

Failed to create session. An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘/Users/ba-000277310/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install -r --no-incremental /Users/ba-000277310/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’ exited with code 1’; Command output: adb: failed to install /Users/ba-000277310/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package io.appium.uiautomator2.server.test signatures do not match previously installed version; ignoring!]

please add the capabilities you use when starting the session and the port and host as well(screenshot will be great).
as well, add you appium version and driver versions.

driver versions
appium version - 2.1.3
[email protected] [installed (npm)]
[email protected] [installed (npm)]

“appium:automationName”: “uiautomator2”,
“platformName”: “Android”,
“appium:deviceName”: “Pixel 5 API 30”,
“appium:app”: “/Users/ba-000277310/Downloads/app-telus-debug (17).apk”

Remote Host -
Remote Port - 4723

Appreciate your help @ido_oserovitz

you can look at this:

as well, try to reset your emulator, use the “wipe data” option in the avd manager window.

1 Like

as well, look at this:

I guess some cleanup didn’t go well and maybe you updated your android driver so the signature might be different from the one currently installed on your emulator.

Running this command twice and wiping the data woked for me

1 Like