Troubleshooting Steps For Could Not Find A Connected Android Device Physical Device

Troubleshooting steps for Could not find a connected Android device (physical device).

Error Description:
An unknown server-side error occurred while processing the command. Original error: Could not find a connected Android device in 20145ms.

Resolution:

Step 1: Make sure that the mobile is connected to the machine with a USB cable where the UiPath Studio is installed. Also make sure the device name, and OS version in the MDM are matching with the mobile OS version and device name.

Step 2: If the above step is configured properly try running the below command in cmd and check if the device is visible in the list of the connected devices.

adb.exe devices will return all the connected devices to the machine as shown in the below image.

If the connected device is not showing up in the list, it means the configuration has not been done properly on the mobile device. So, follow the below steps:

  1. On the mobile, go to settings --> About phone ---> Software information. Find the build number.
  2. Tap continuously on the build number 7 times and then the developer mode will be enabled.
  3. Go to settings and then developer options that are needed to enable USB Debugging as it is required to allow the Android Studio and other SDK tools to recognize the device when connected via USB.
  4. Under the Developer options ---> Networking tab ----> Default USB Configuration, set it to charging phone only
  5. Once it is done, run this command "adb.exe devices" and it shows the device under the list of connected devices as mentioned at the start of step 2
  6. After following the steps mentioned above, start the Appium server and connect to the phone from the mobile device manager and then it is suitable to automate the mobile.