Error while connecting mobile device to laptop

Hi everyone,
I’m encountering an error while connecting my mobile device to my laptop. The application opens initially, but it automatically disconnects.

An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\lenovo\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 8e2b204d2494 shell am start-foreground-service -e longitude 0 -e latitude 0 -e altitude 0 io.appium.settings/.LocationService’ exited with code 255’; Command output: Error: Not found; no service started.

First of all, try changing the port to something other than 5037, as it’s the default port and might be causing conflicts.

After that, on your mobile device, change the USB option to MTP (File Transfer) mode, as sometimes the default USB mode can prevent proper communication.

If this doesn’t work, consider the following additional steps:

  1. Check USB Debugging:
    Ensure that USB Debugging is enabled on your mobile device. Go to Developer Options and verify this setting.
  2. Update ADB Driver:
    It could be a driver issue. Update your ADB driver by going to Device Manager on your laptop, finding the device under Portable Devices or Android Device, and selecting Update driver.
  3. Try a Different Cable or USB Port:
    Sometimes a faulty USB cable or port can cause connectivity issues. Try using a different cable or USB port on your laptop.
  4. Reinstall Platform-Tools:
    If the issue persists, consider reinstalling the Android SDK platform-tools. This can fix any corrupted ADB files.

Hi @shrikrushna.bhoi

The error indicates that the Appium Settings app is either not installed or not updated on your mobile device. Reinstall or update the Appium Settings app using the command:

adb install -r io.appium.settings.apk

Also, ensure USB debugging is enabled and the device is authorized. Restart ADB if needed.

If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath