Not able to launch emulator

Getting below error while running the script, and emulator is not launching, appreciate your help

Error creating bean with name ‘androidDriver’ defined in class path resource [com/telusConnect/automation/core/driver/LocalDriverConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.appium.java_client.android.AndroidDriver]: Factory method ‘androidDriver’ threw exception; nested exception is org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: 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!]

Try https://github.com/appium/appium-uiautomator2-driver#session-startup-issues

Might be this:

Running this command twice fix my issue, Thanks